From 1ae48312fe346dc8cd084f60840ff70972d2d384 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 13 May 2014 23:29:45 +0300 Subject: Move CHECKLISTENERS macro from debug.h into localconsts.h. --- src/localconsts.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/localconsts.h') diff --git a/src/localconsts.h b/src/localconsts.h index 35ccf1f78..9783e06f0 100644 --- a/src/localconsts.h +++ b/src/localconsts.h @@ -86,6 +86,18 @@ #define FOR_EACHP(type, iter, array) for (type iter = array->begin(), \ iter##_end = array->end(); iter != iter##_end; ++ iter) +#ifdef ENABLE_CHECKS + +#define CHECKLISTENERS \ + config.checkListeners(this, __FILE__, __LINE__); \ + serverConfig.checkListeners(this, __FILE__, __LINE__); + +#else // ENABLE_CHECKS + +#define CHECKLISTENERS + +#endif // ENABLE_CHECKS + // #define DEBUG_CONFIG 1 // #define DEBUG_BIND_TEXTURE 1 // #define DISABLE_RESOURCE_CACHING 1 -- cgit v1.2.3-70-g09d2