Jelajahi Sumber

Merge branch 'master' of github.com:taylor001/crown

Daniele Bartolini 10 tahun lalu
induk
melakukan
7c0340b27a
1 mengubah file dengan 3 tambahan dan 1 penghapusan
  1. 3 1
      src/core/macros.h

+ 3 - 1
src/core/macros.h

@@ -20,5 +20,7 @@
 #endif
 
 #define CE_UNUSED(x) do { (void)(x); } while (0)
-
 #define CE_COUNTOF(arr) (sizeof(arr)/sizeof(arr[0]))
+#define CE_CONCATENATE1(a, b) a ## b
+#define CE_CONCATENATE(a, b) CE_CONCATENATE1(a, b)
+#define CE_STATIC_ASSERT(condition) typedef int CE_CONCATENATE(STATIC_ASSERT,__LINE__)[condition ? 1 : -1]