Ticket #8522: format.patch
File format.patch, 1.3 KB (added by , 18 years ago) |
---|
-
trunk/common/util.h
261 261 } // End of namespace Common 262 262 263 263 264 #if !(defined(__GNUC__) || defined(__GNUG__) || defined(__attribute__)) 265 # define __attribute__(p) /* nothing */ 266 #endif 264 267 265 268 #if defined(__GNUC__) 266 void CDECL error(const char *s, ...) NORETURN;269 void CDECL error(const char *s, ...) __attribute__((format(printf, 1, 2))) NORETURN; 267 270 #else 268 271 void CDECL NORETURN error(const char *s, ...); 269 272 #endif 270 273 271 void CDECL warning(const char *s, ...) ;274 void CDECL warning(const char *s, ...) __attribute__((format(printf, 1, 2))); 272 275 273 void CDECL debug(int level, const char *s, ...) ;274 void CDECL debug(const char *s, ...) ;275 void CDECL debugN(int level, const char *s, ...) ;276 void CDECL debug(int level, const char *s, ...) __attribute__((format(printf, 2, 3))); 277 void CDECL debug(const char *s, ...) __attribute__((format(printf, 1, 2))); 278 void CDECL debugN(int level, const char *s, ...) __attribute__((format(printf, 2, 3))); 276 279 void checkHeap(); 277 280 278 void CDECL debugC(int level, uint32 engine_level, const char *s, ...) ;281 void CDECL debugC(int level, uint32 engine_level, const char *s, ...) __attribute__((format(printf, 3, 4))); 279 282 280 283 extern int gDebugLevel; 281 284