diff --git a/stepmania/src/global.h b/stepmania/src/global.h index 76f91d1486..e19a992657 100644 --- a/stepmania/src/global.h +++ b/stepmania/src/global.h @@ -119,6 +119,11 @@ void ShowWarning( const char *file, int line, const char *message ); // don't pu #define DEBUG_ASSERT_M(x,y) #endif +template struct CompileAssert; +template <> struct CompileAssert { }; +template struct CompileAssertDecl { }; +#define COMPILE_ASSERT(COND) typedef CompileAssertDecl< sizeof(CompileAssert) > CompileAssertInst + #if defined(__GNUC__) /* Define a macro to tell the compiler that a function has printf() semantics, to aid warning output. */ #define PRINTF(a,b) __attribute__((format(__printf__,a,b)))