Update config.h

Add a static assertion implemented via an array
This commit is contained in:
woodzn 2025-01-08 14:58:25 +08:00
parent 697312cae5
commit 1046e2192e

View File

@ -65,3 +65,8 @@
#else #else
#define PK_PLATFORM_SEP '/' #define PK_PLATFORM_SEP '/'
#endif #endif
//If missing static_assert
#ifndef static_assert
#define static_assert(x, msg) int static_assert(int static_assert[(x)?1:-1])
#endif