diff options
author | George Hazan <george.hazan@gmail.com> | 2015-07-02 19:04:50 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-07-02 19:04:50 +0000 |
commit | 0e9e528e18ff63d46e5b3471d6fa12344b0d28b3 (patch) | |
tree | 2f3f3f7cfb248a3447451ab82760dc9aca5c98fe /plugins/Clist_modern/src/modern_log.h | |
parent | 209e1040e34c50e424a7aa0a7c860c7fc279a76f (diff) |
unified project for clist_modern
git-svn-id: http://svn.miranda-ng.org/main/trunk@14473 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern/src/modern_log.h')
-rw-r--r-- | plugins/Clist_modern/src/modern_log.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/plugins/Clist_modern/src/modern_log.h b/plugins/Clist_modern/src/modern_log.h new file mode 100644 index 0000000000..b96eaafd65 --- /dev/null +++ b/plugins/Clist_modern/src/modern_log.h @@ -0,0 +1,19 @@ +#pragma once
+
+#ifndef __LOG_H__
+# define __LOG_H__
+
+#ifdef _DEBUG
+
+void Log(const char *file, int line, const char *fmt, ...);
+#define log0(s) Log(__FILE__,__LINE__,s)
+#define log1(s,a) Log(__FILE__,__LINE__,s,a)
+
+#else
+
+#define log0(s)
+#define log1(s,a)
+
+#endif
+
+#endif // __LOG_H__
\ No newline at end of file |