Changeset - r8915:e89cec471d03
[Not reviewed]
master
0 1 0
smatz - 16 years ago 2008-04-13 14:19:08
smatz@openttd.org
(svn r12685) -Codechange: DebugDumpCommands() couldn't be inlined, define it as a macro instead
1 file changed with 7 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/debug.h
Show inline comments
 
@@ -103,7 +103,13 @@ void CDECL ShowInfoF(const char *str, ..
 
#ifdef DEBUG_DUMP_COMMANDS
 
	void CDECL DebugDumpCommands(const char *s, ...);
 
#else /* DEBUG_DUMP_COMMANDS */
 
	static inline void DebugDumpCommands(const char *s, ...) {}
 
	/* when defined as an empty function with variable argument list,
 
	 * it can't be inlined - so define it as an empty macro */
 
	#if defined(__GNUC__) && (__GNUC__ < 3)
 
		#define DebugDumpCommands(s, args...)
 
	#else
 
		#define DebugDumpCommands(s, ...)
 
	#endif
 
#endif /* DEBUG_DUMP_COMMANDS */
 

	
 
#endif /* DEBUG_H */
0 comments (0 inline, 0 general)