X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=common%2Fos.hpp;h=7f624517432838f1a8fd38515cbf0c871b15af6d;hb=1242ab5cbdc409e2fc2d787edc28c6ac2a8439d1;hp=cc72a0ea5b288184ffeb1759894344d2f5f5de3a;hpb=af41e568fc908277d84a01ed56bbefe4db334241;p=apitrace diff --git a/common/os.hpp b/common/os.hpp index cc72a0e..7f62451 100644 --- a/common/os.hpp +++ b/common/os.hpp @@ -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));