Home | History | Annotate | Download | only in src
      1 /*
      2  * harfbuzz-debug.h
      3  *
      4  */
      5 
      6 #ifndef HARFBUZZ_DEBUG_H_
      7 #define HARFBUZZ_DEBUG_H_
      8 
      9 #define ANDROID_DEBUG 0
     10 
     11 #if ANDROID_DEBUG
     12 #define HBDebug(...) Android_Debug(__FILE__, __LINE__, \
     13                                    __FUNCTION__, __VA_ARGS__)
     14 #else
     15 #define HBDebug
     16 #endif
     17 
     18 void Android_Debug(const char* file, int line, const char* function, const char* format, ...)
     19         __attribute__((format(printf, 4, 5)));  /* 4=format 5=params */;
     20 
     21 #endif /* HARFBUZZ_DEBUG_H_ */
     22