From 224c9930b9106d4c9b383f7f8b6625597f7bd26c Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Mon, 22 Jun 2009 10:52:58 +0200 Subject: PRINT and ERROR macros --- server/util/util.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'server/util/util.h') diff --git a/server/util/util.h b/server/util/util.h index 7acbfe613..77bafcee8 100644 --- a/server/util/util.h +++ b/server/util/util.h @@ -29,6 +29,9 @@ void debug_fn(const char *format, ...); } \ } while(0); +#define PRINT(fmt, ...) fprintf(stdout, gettext(fmt), ##__VA_ARGS__) +#define ERROR(fmt, ...) fprintf(stderr, gettext(fmt), ##__VA_ARGS__) + #ifndef discard_const #define discard_const(ptr) ((void *)((uintptr_t)(ptr))) #endif -- cgit