diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-17 12:44:02 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-17 12:44:02 +0000 |
commit | f673f034c2fef25e932a12fbd5e2772f90c75e6d (patch) | |
tree | aeaac57c13fd2a23e47e437d804957d67e5413ee /plugins/Clist_modern/hdr/modern_log.h | |
parent | bce08282b66209eb482726a7ec6c89083db327ac (diff) |
Clist_mw & Clist_modern renamed
git-svn-id: http://svn.miranda-ng.org/main/trunk@455 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern/hdr/modern_log.h')
-rw-r--r-- | plugins/Clist_modern/hdr/modern_log.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/plugins/Clist_modern/hdr/modern_log.h b/plugins/Clist_modern/hdr/modern_log.h new file mode 100644 index 0000000000..0696c280bd --- /dev/null +++ b/plugins/Clist_modern/hdr/modern_log.h @@ -0,0 +1,27 @@ +#pragma once
+
+#ifndef __LOG_H__
+# define __LOG_H__
+
+#ifdef _DEBUG_LOG
+
+void Log(const char *file,int line,const char *fmt,...);
+#define logg() Log(__FILE__,__LINE__,"")
+#define log0(s) Log(__FILE__,__LINE__,s)
+#define log1(s,a) Log(__FILE__,__LINE__,s,a)
+#define log2(s,a,b) Log(__FILE__,__LINE__,s,a,b)
+#define log3(s,a,b,c) Log(__FILE__,__LINE__,s,a,b,c)
+#define log4(s,a,b,c,d) Log(__FILE__,__LINE__,s,a,b,c,d)
+
+#else
+
+#define logg()
+#define log0(s)
+#define log1(s,a)
+#define log2(s,a,b)
+#define log3(s,a,b,c)
+#define log4(s,a,b,c,d)
+
+#endif
+
+#endif // __LOG_H__
\ No newline at end of file |