diff options
Diffstat (limited to 'snag/src/util.h')
| -rw-r--r-- | snag/src/util.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/snag/src/util.h b/snag/src/util.h index eca4e4d..1a05ab0 100644 --- a/snag/src/util.h +++ b/snag/src/util.h @@ -20,9 +20,9 @@ void* _emalloc(int line, const char* file, size_t size, char* alloc_reason); #endif -// functions for outputting and displaying text -#define printout(fmt, ...) fprintf(stdout, fmt, ##__VA_ARGS__) -#define print(fmt, ...) fprintf(stderr, fmt, ##__VA_ARGS__) +// functions for outputting and displaying text, log is used for nonroutine bad things +void printout(const char* format, ...) __attribute__((format(printf, 1, 2))); +void print(const char* format, ...) __attribute__((format(printf, 1, 2))); // string functions #define vastrcat(...) vastrcat_(0, __VA_ARGS__, NULL) |
