use SDL_COMPILE_TIME_ASSERT instead of SDL_STATIC_ASSERT

This commit is contained in:
pionere 2022-01-12 16:40:52 +01:00 committed by Ryan C. Gordon
parent 3936af99d8
commit 014e2bbdb2
2 changed files with 1 additions and 2 deletions

View file

@ -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