src/common.h

changeset 515
a0ad72800b96
parent 513
29eb671b34f6
child 523
a12e36f2db5f
--- a/src/common.h	Fri Oct 18 22:07:26 2013 +0300
+++ b/src/common.h	Fri Oct 18 22:30:08 2013 +0300
@@ -48,24 +48,21 @@
 #define RC_NUMBER      0
 
 // =============================================
-#if (BUILD_ID != BUILD_INTERNAL)
-#define RELEASE
-#endif // BUILD_ID
+#ifdef DEBUG
+# undef RELEASE
+#endif // DEBUG
 
+#ifdef RELEASE
+# undef DEBUG
+#endif // RELEASE
+
+// =============================================
 #define alias auto&
-#define elif else if
+#define elif(A) else if (A)
 
 // Null pointer
 static const std::nullptr_t null = nullptr;
 
-#ifdef __GNUC__
-# define FORMAT_PRINTF(M,N) __attribute__ ((format (printf, M, N)))
-# define ATTR(N) __attribute__ ((N))
-#else
-# define FORMAT_PRINTF(M,N)
-# define ATTR(N)
-#endif // __GNUC__
-
 #ifdef WIN32
 # define DIRSLASH "\\"
 # define DIRSLASH_CHAR '\\'

mercurial