[Core] Make sure wrapper type uses internal naming

This commit is contained in:
FintasticMan 2025-01-03 13:14:54 +01:00
parent a9274a01f9
commit 248e0b3602
No known key found for this signature in database
GPG Key ID: A00F1AB6DB1ED386

2
clay.h
View File

@ -29,7 +29,7 @@
// Public Macro API ------------------------ // Public Macro API ------------------------
#define CLAY__WRAPPER_TYPE(type) type##Wrapper #define CLAY__WRAPPER_TYPE(type) Clay__##type##Wrapper
#define CLAY__WRAPPER_STRUCT(type) typedef struct { type wrapped; } CLAY__WRAPPER_TYPE(type) #define CLAY__WRAPPER_STRUCT(type) typedef struct { type wrapped; } CLAY__WRAPPER_TYPE(type)
#define CLAY__CONFIG_WRAPPER(type, ...) (CLAY__INIT(CLAY__WRAPPER_TYPE(type)) { __VA_ARGS__ }).wrapped #define CLAY__CONFIG_WRAPPER(type, ...) (CLAY__INIT(CLAY__WRAPPER_TYPE(type)) { __VA_ARGS__ }).wrapped