src/debug.h
changeset 8915 ea2b40b02844
parent 8409 de295d5e2bb4
child 9111 48ce04029fe4
equal deleted inserted replaced
8914:6bbc5f1455f7 8915:ea2b40b02844
   101 void CDECL ShowInfoF(const char *str, ...);
   101 void CDECL ShowInfoF(const char *str, ...);
   102 
   102 
   103 #ifdef DEBUG_DUMP_COMMANDS
   103 #ifdef DEBUG_DUMP_COMMANDS
   104 	void CDECL DebugDumpCommands(const char *s, ...);
   104 	void CDECL DebugDumpCommands(const char *s, ...);
   105 #else /* DEBUG_DUMP_COMMANDS */
   105 #else /* DEBUG_DUMP_COMMANDS */
   106 	static inline void DebugDumpCommands(const char *s, ...) {}
   106 	/* when defined as an empty function with variable argument list,
       
   107 	 * it can't be inlined - so define it as an empty macro */
       
   108 	#if defined(__GNUC__) && (__GNUC__ < 3)
       
   109 		#define DebugDumpCommands(s, args...)
       
   110 	#else
       
   111 		#define DebugDumpCommands(s, ...)
       
   112 	#endif
   107 #endif /* DEBUG_DUMP_COMMANDS */
   113 #endif /* DEBUG_DUMP_COMMANDS */
   108 
   114 
   109 #endif /* DEBUG_H */
   115 #endif /* DEBUG_H */