From f24985ea2f080f0c2029e4af1771e705c7d0e827 Mon Sep 17 00:00:00 2001 From: Stas Degteff Date: Mon, 14 Feb 2011 19:14:01 +0000 Subject: [PATCH] Preprocesor macro for write to log message about null-pointer in parameter. --- golded3/geglob.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/golded3/geglob.h b/golded3/geglob.h index a435c7d..1735358 100644 --- a/golded3/geglob.h +++ b/golded3/geglob.h @@ -42,7 +42,8 @@ // ------------------------------------------------------------------ extern glog LOG; - +#define LOG_NULL_POINTER \ + LOG.printf("! Parameter is null pointer. This is internal error in program code! Please make report for developers.") extern gareafile* AFILE; extern CfgGed* CFG; extern LangGed* LNG;