]> git.cworth.org Git - apitrace/blobdiff - common/os.hpp
Android: add support for dynamically enable/disable tracing
[apitrace] / common / os.hpp
index cc72a0ea5b288184ffeb1759894344d2f5f5de3a..7f624517432838f1a8fd38515cbf0c871b15af6d 100644 (file)
@@ -70,6 +70,15 @@ void log(const char *format, ...)
   #endif
 #endif
 
+#ifdef ANDROID
+bool apitrace_enabled(void);
+#else
+static inline bool apitrace_enabled(void)
+{
+    return true;
+}
+#endif
+
 void abort(void);
 
 void setExceptionCallback(void (*callback)(void));