mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-07 03:48:14 +00:00
use SDL_COMPILE_TIME_ASSERT instead of SDL_STATIC_ASSERT
This commit is contained in:
@@ -76,7 +76,6 @@ assert can have unique static variables associated with it.
|
||||
#endif
|
||||
#define SDL_FILE __FILE__
|
||||
#define SDL_LINE __LINE__
|
||||
#define SDL_STATIC_ASSERT(COND,MSG) typedef char static_assertion_##MSG[(COND)?1:-1];
|
||||
|
||||
/*
|
||||
sizeof (x) makes the compiler still parse the expression even without
|
||||
|
Reference in New Issue
Block a user