MGHeader.h 704 B

1234567891011121314151617181920212223242526
  1. //
  2. // MGMacro.h
  3. //
  4. #ifndef text_MGMacro_h
  5. #define text_MGMacro_h
  6. #define MEGVII_EGG_MODEL @"MegviiEGG_0_1_0_model"
  7. #define WIN_WIDTH [UIScreen mainScreen].bounds.size.width
  8. #define WIN_HEIGHT [UIScreen mainScreen].bounds.size.height
  9. #define MGColorWithRGB(R, G, B, A) [UIColor colorWithRed:R/255.0f green:G/255.0f blue:B/255.0f alpha:A]
  10. #if DEBUG
  11. #define MGLog(FORMAT, ...) fprintf(stderr,"%s:%d \t%s\n",[[[NSString stringWithUTF8String:__FILE__] lastPathComponent] UTF8String], __LINE__, [[NSString stringWithFormat:FORMAT, ##__VA_ARGS__] UTF8String]);
  12. #else
  13. #define NSLog(FORMAT, ...) nil
  14. #endif
  15. #define MGLocalString(key) NSLocalizedStringFromTable(key, @"MGFaceDetection", nil)
  16. #endif