Changeset 68474 in vbox for trunk/src/VBox/GuestHost/OpenGL
- Timestamp:
- Aug 18, 2017 3:39:04 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/OpenGL/include/cr_error.h
r63199 r68474 12 12 #ifdef __cplusplus 13 13 extern "C" { 14 #endif15 16 #ifndef __GNUC__17 #define NORETURN_PRINTF18 #define PRINTF19 #elif defined IN_GUEST20 #define NORETURN_PRINTF __attribute__ ((__noreturn__,format(printf,1,2)))21 #define PRINTF __attribute__ ((format(printf,1,2)))22 #else23 #define NORETURN_PRINTF24 #define PRINTF25 14 #endif 26 15 … … 39 28 DECLEXPORT(void) crEnableWarnings(int onOff); 40 29 41 DECLEXPORT(void) crDebug(const char *format, ... ) PRINTF;30 DECLEXPORT(void) crDebug(const char *format, ... ) RT_IPRT_FORMAT_ATTR(1, 2); 42 31 DECLEXPORT(void) crDbgCmdPrint(const char *description1, const char *description2, const char *cmd, ...); 43 32 DECLEXPORT(void) crDbgCmdSymLoadPrint(const char *modName, const void*pvAddress); 44 33 #if defined(DEBUG_misha) && defined(RT_OS_WINDOWS) 45 typedef void FNCRDEBUG(const char *format, ... ) PRINTF;34 typedef void FNCRDEBUG(const char *format, ... ) RT_IPRT_FORMAT_ATTR(1, 2); 46 35 typedef FNCRDEBUG *PFNCRDEBUG; 47 36 DECLINLINE(PFNCRDEBUG) crGetDebug() {return crDebug;} 48 37 # define crWarning (RT_BREAKPOINT(), crDebug) 49 38 #else 50 DECLEXPORT(void) crWarning(const char *format, ... ) PRINTF;39 DECLEXPORT(void) crWarning(const char *format, ... ) RT_IPRT_FORMAT_ATTR(1, 2); 51 40 #endif 52 DECLEXPORT(void) crInfo(const char *format, ... ) PRINTF;41 DECLEXPORT(void) crInfo(const char *format, ... ) RT_IPRT_FORMAT_ATTR(1, 2); 53 42 54 DECLEXPORT(void) crError(const char *format, ... ) PRINTF /*NORETURN_PRINTF - it returns*/;43 DECLEXPORT(void) crError(const char *format, ... ) RT_IPRT_FORMAT_ATTR(1, 2); 55 44 56 45 /* Throw more info while opengl is not stable */
Note:
See TracChangeset
for help on using the changeset viewer.