From 029818ba44703c5151f8d916284e307b05d08fa9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 1 Nov 2013 00:09:32 +0300 Subject: Add configure option --enable-checks for check some calls (disabled by default) Also add configuration listeners removing in objects. --- src/debug.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/debug.h') diff --git a/src/debug.h b/src/debug.h index 31b2b457b..db1989b77 100644 --- a/src/debug.h +++ b/src/debug.h @@ -84,3 +84,16 @@ #define MPHYSFSRWOPS_openRead(name) PHYSFSRWOPS_openRead(name) #endif // DEBUG_PHYSFS + + +#ifdef ENABLE_CHECKS + +#define CHECKLISTENERS \ + config.checkListeners(this, __FILE__, __LINE__); \ + serverConfig.checkListeners(this, __FILE__, __LINE__); + +#else // ENABLE_CHECKS + +#define CHECKLISTENERS + +#endif // ENABLE_CHECKS -- cgit v1.2.3-60-g2f50