Tweaked the debug building and printing a little - I hope this works OK for everyone. Let me know if not.

Tamped down a few warnings.
For the demo/server Makefile, made an either/or choice between executable size optimization (normal) or gdb debug info and no optimization.
This commit is contained in:
tbrennan3
2010-09-27 20:27:29 +00:00
parent d5822ac53a
commit 44b7e02721
6 changed files with 27 additions and 10 deletions
+5 -2
View File
@@ -43,16 +43,19 @@
extern "C" {
#endif /* __cplusplus */
#if DEBUG_ENABLED
void debug_printf(
const char *format,
...);
#if DEBUG_ENABLED
/* Nothing more here */
#else
static void debug_printf(
/* If your compiler supports it, this is more compact:
inline void debug_printf(
const char *format,
...) {
format = format;
}
*/
#endif
#ifdef __cplusplus
}