From a1bf5e9bafc9c6dadc04749e4f9afbd6fc8b8cf5 Mon Sep 17 00:00:00 2001 From: kramm Date: Wed, 16 Jan 2002 11:33:00 +0000 Subject: [PATCH] new macro FIXNULL. --- lib/log.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/log.h b/lib/log.h index 31b99fb..34a8c16 100644 --- a/lib/log.h +++ b/lib/log.h @@ -31,4 +31,6 @@ extern void initLog(char* pLogDir, int fileloglevel, char* servAddr, char* logPo extern void logf(const char* logFormat, ...); extern void exitLog(void); +#define FIXNULL(a) ((int)(a)?(a):"NULL") + #endif // __log_h__ -- 1.7.10.4