mirror of https://github.com/OpenTTD/OpenTTD
(svn r12685) -Codechange: DebugDumpCommands() couldn't be inlined, define it as a macro instead
parent
e1ab9c2eea
commit
305dc1001b
|
@ -103,7 +103,13 @@ void CDECL ShowInfoF(const char *str, ...);
|
||||||
#ifdef DEBUG_DUMP_COMMANDS
|
#ifdef DEBUG_DUMP_COMMANDS
|
||||||
void CDECL DebugDumpCommands(const char *s, ...);
|
void CDECL DebugDumpCommands(const char *s, ...);
|
||||||
#else /* DEBUG_DUMP_COMMANDS */
|
#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_DUMP_COMMANDS */
|
||||||
|
|
||||||
#endif /* DEBUG_H */
|
#endif /* DEBUG_H */
|
||||||
|
|
Loading…
Reference in New Issue