diff options
author | Daniel Stone <daniel@fooishbar.org> | 2006-10-08 17:04:12 +0300 |
---|---|---|
committer | Daniel Stone <daniels@endtroducing.fooishbar.org> | 2006-10-08 17:04:12 +0300 |
commit | 14b157bdb1f2cd5feba03ba0815d7c5b2dd6633f (patch) | |
tree | 88f07122572970c44463419036f71f2276c48bcd /include/os.h | |
parent | 9e37de193f5d7412ffd8de76d5eed0158c0a3609 (diff) |
include: actually declare DebugF
DebugF is ErrorF when DEBUG is defined, else a no-op.
Diffstat (limited to 'include/os.h')
-rw-r--r-- | include/os.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/os.h b/include/os.h index fbe1592a1..d4eed220f 100644 --- a/include/os.h +++ b/include/os.h @@ -510,6 +510,12 @@ __attribute((noreturn)) #endif ; +#ifdef DEBUG +#define DebugF ErrorF +#else +#define DebugF(x, ...) /* */ +#endif + extern void VErrorF(const char *f, va_list args); extern void ErrorF(const char *f, ...) _printf_attribute(1,2); extern void Error(char *str); |