mirror of
https://github.com/nicbarker/clay.git
synced 2025-04-20 05:08:04 +00:00
fix init for clay_string
This commit is contained in:
parent
27ec3331fd
commit
165085e70d
2
clay.h
2
clay.h
@ -80,7 +80,7 @@
|
|||||||
|
|
||||||
#define CLAY__STRING_LENGTH(s) ((sizeof(s) / sizeof((s)[0])) - sizeof((s)[0]))
|
#define CLAY__STRING_LENGTH(s) ((sizeof(s) / sizeof((s)[0])) - sizeof((s)[0]))
|
||||||
|
|
||||||
#define CLAY_STRING(string) (Clay_String) { .length = CLAY__STRING_LENGTH(string), .chars = (string) }
|
#define CLAY_STRING(string) CLAY__INIT(Clay_String) { .length = CLAY__STRING_LENGTH(string), .chars = (string) }
|
||||||
|
|
||||||
static int CLAY__ELEMENT_DEFINITION_LATCH = 0;
|
static int CLAY__ELEMENT_DEFINITION_LATCH = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user