use SDL_COMPILE_TIME_ASSERT instead of SDL_STATIC_ASSERT

This commit is contained in:
pionere authored and Ryan C. Gordon committed 2022-01-28 20:40:19 -05:00
1 parent 3936af99d8
commit 014e2bbdb2
2 files changed
+1 -2

No files matched your search

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