You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

16 lines
373 B

  1. #ifndef HELPER_H
  2. #define HELPER_H
  3. #if defined(WIN32)
  4. #include <windows.h>
  5. extern HWND hwnd;
  6. static inline void showMessage(const char* msg)
  7. { MessageBox(hwnd, msg, "TextSuiteExample Error", MB_OK); };
  8. #elif defined(LINUX)
  9. #include <stdio.h>
  10. static inline void showMessage(const char* msg)
  11. { printf("%s\n", msg); };
  12. #endif
  13. #endif /* HELPER_H */