fix bad ifdef

This commit is contained in:
Nic Barker 2024-09-28 21:56:40 +12:00
parent e9e5500077
commit a790e21d4e

4
clay.h
View File

@ -455,9 +455,9 @@ extern uint32_t Clay__debugViewWidth;
#ifdef __cplusplus #ifdef __cplusplus
#define CLAY__ALIGNMENT(type) alignof(type) #define CLAY__ALIGNMENT(type) alignof(type)
#define CLAY__INIT(type) type #define CLAY__INIT(type) type
#elif #else
#define CLAY__INIT(type) (type) #define CLAY__INIT(type) (type)
#define CLAY__ALIGNMENT(type) (offsetof(struct { char c; type x; } a, a.x)) #define CLAY__ALIGNMENT(type) (offsetof(struct { char c; type x; }, x))
#endif #endif
bool Clay__warningsEnabled = true; bool Clay__warningsEnabled = true;