mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-15 17:28:28 +00:00
use SDL_COMPILE_TIME_ASSERT instead of SDL_STATIC_ASSERT
This commit is contained in:
parent
3936af99d8
commit
014e2bbdb2
2 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue