Commit 8d93161
Changed files (1)
notlibc.h
@@ -150,7 +150,7 @@ typedef struct _##name { \
#define PACKED_STRUCT( name, ...) \
typedef struct __attribute__((packed)) _##name { \
__VA_ARGS__ \
- } name;
+ } name
#elif COMPILER == COMPILER_MSVC
#define PACKED_STRUCT( name, ...) \
PRAGMA(pack(push, 1)) \
@@ -231,8 +231,8 @@ typedef union _##name { \
MACRO_EXPAND(MACRO_DEFER(MACRO_STRING_JOIN)(name, __LINE__))
/* Compile-time assertion */
-#define ASSERT( expression ) \
- typedef char UNIQUE_NAME(compile_time_assert)[(expression)? 1 : -1]
+#define ASSERT( ... ) \
+ typedef char UNIQUE_NAME(compile_time_assert)[(__VA_ARGS__)? 1 : -1]
/*=========================== Core Datatypes =================================*/