1 #pragma once 2 3 #ifdef __APPLE__ 4 5 namespace expo { 6 namespace gl_cpp { 7 void EXiOSLog(const char *msg, ...) __attribute__((format(printf, 1, 2))); 8 9 typedef struct { 10 long majorVersion; 11 long minorVersion; 12 long patchVersion; 13 } EXiOSOperatingSystemVersion; 14 15 EXiOSOperatingSystemVersion EXiOSGetOperatingSystemVersion(void); 16 } // namespace gl_cpp 17 } // namespace expo 18 19 #endif 20 21 #ifdef __ANDROID__ 22 #include <android/log.h> 23 #endif 24 25 #define EXGL_DEBUG // Whether debugging is on 26 27 #ifdef EXGL_DEBUG 28 #ifdef __ANDROID__ 29 #define EXGLSysLog(fmt, ...) __android_log_print(ANDROID_LOG_ERROR, "EXGL", fmt, ##__VA_ARGS__) 30 #endif 31 #ifdef __APPLE__ 32 #define EXGLSysLog(fmt, ...) EXiOSLog("EXGL: " fmt, ##__VA_ARGS__) 33 #endif 34 #else 35 #define EXGLSysLog(...) 36 #endif 37