diff options
| author | Franklin Wei <git@fwei.tk> | 2015-12-28 13:55:12 -0500 |
|---|---|---|
| committer | Franklin Wei <git@fwei.tk> | 2015-12-28 13:55:12 -0500 |
| commit | f0c4753ddb8fa32f7aa0e246f4205f608972c358 (patch) | |
| tree | 314ee8088eebf3e227ecda64ccba49d95c403772 /src/netcosm.h | |
| parent | 4ecc22f1fc1e902e4a6d98fdea51fda1a29d1904 (diff) | |
| download | netcosm-f0c4753ddb8fa32f7aa0e246f4205f608972c358.zip netcosm-f0c4753ddb8fa32f7aa0e246f4205f608972c358.tar.gz netcosm-f0c4753ddb8fa32f7aa0e246f4205f608972c358.tar.bz2 netcosm-f0c4753ddb8fa32f7aa0e246f4205f608972c358.tar.xz | |
optimize
Diffstat (limited to 'src/netcosm.h')
| -rw-r--r-- | src/netcosm.h | 10 |
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*); |