lib/debug Add DEBUGC and DEBUGADDC as dummies
authorAndrew Bartlett <abartlet@samba.org>
Fri, 17 Sep 2010 05:18:57 +0000 (15:18 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 12 Oct 2010 02:54:16 +0000 (02:54 +0000)
This allows code that needs to also compile against the source3
debug code to compile in source4.

Andrew Bartlett

lib/util/debug.h

index fd2adcfdedf071850867ce1b06f969ae5f121d52..0172df8efe553ed9de81e474366287e95280db2f 100644 (file)
@@ -63,6 +63,10 @@ extern int DEBUGLEVEL;
  */
 #define DEBUGADD(level, body) _DEBUG(level, body, false)
 
+/* Compatiblity macros for the source3 calling convention */
+#define DEBUGC(class, level, body) _DEBUG(level, body, true)
+#define DEBUGADDC(class, level, body) _DEBUG(level, body, false)
+
 /**
  * Obtain indentation string for the debug log. 
  *