|
|
@@ -78,6 +78,9 @@ inline T clamp(T val, T mmin, T mmax)
|
|
|
#define countof(arr) (sizeof(arr)/sizeof(arr[0]))
|
|
|
#define container_of(ptr, type, member) ((char*)ptr - offsetof(type, member))
|
|
|
|
|
|
+#define CE_STRINGIZE(value) CE_STRINGIZE_(value)
|
|
|
+#define CE_STRINGIZE_(value) #value
|
|
|
+
|
|
|
#define CE_NOOP(...) do { (void)0; } while (0)
|
|
|
#define CE_UNUSED(x) do { (void)(x); } while (0)
|
|
|
#define CE_STATIC_ASSERT(condition, ...) static_assert(condition, "" # __VA_ARGS__)
|