don't define mm_log() with IMAGER_NO_CONTEXT
authorTony Cook <tony@develop-help.com>
Mon, 6 Aug 2012 01:58:17 +0000 (11:58 +1000)
committerTony Cook <tony@develop-help.com>
Tue, 14 Aug 2012 09:58:19 +0000 (19:58 +1000)
since you may end up using a different context to that stored locally.

log.h

diff --git a/log.h b/log.h
index 2d23440..a942926 100644 (file)
--- a/log.h
+++ b/log.h
@@ -34,7 +34,9 @@ log file if logging is enabled.
 */
 
 #ifdef IMAGER_LOG
+#ifndef IMAGER_NO_CONTEXT
 #define mm_log(x) { i_lhead(__FILE__,__LINE__); i_loog x; } 
+#endif
 #define im_log(x) { im_lhead(aIMCTX, __FILE__,__LINE__); im_loog x; } 
 #else
 #define mm_log(x)