aboutsummaryrefslogtreecommitdiff
path: root/src/netcosm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/netcosm.h')
-rw-r--r--src/netcosm.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/netcosm.h b/src/netcosm.h
index 5c308b5..31edb50 100644
--- a/src/netcosm.h
+++ b/src/netcosm.h
@@ -98,6 +98,14 @@
#define MAX(a,b) ((a>b)?(a):(b))
#define MIN(a,b) ((a<b)?(a):(b))
+#ifndef NDEBUG
+#define debugf(fmt,...) debugf_real(fmt, ##__VA_ARGS__)
+#define sig_debugf debugf
+#else
+#define debugf(fmt,...)
+#define sig_debugf debugf
+#endif
+
typedef int room_id;
struct authinfo_t {
@@ -205,5 +213,5 @@ void world_free(void);
/* utility functions */
void __attribute__((noreturn,format(printf,1,2))) error(const char *fmt, ...);
-void sig_printf(const char *fmt, ...);
+void debugf_real(const char *fmt, ...);
void remove_cruft(char*);