From bebf60a9eb7fdb4ee1959fc79807e53bdb75d2e5 Mon Sep 17 00:00:00 2001 From: Harrison Lambeth Date: Wed, 8 Jan 2025 01:50:15 -0700 Subject: [PATCH] more rearrange stuff --- clay.h | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/clay.h b/clay.h index ea98034..6eb8d93 100644 --- a/clay.h +++ b/clay.h @@ -550,14 +550,6 @@ extern uint32_t Clay__debugViewWidth; #ifdef CLAY_IMPLEMENTATION #undef CLAY_IMPLEMENTATION -thread_local Clay_Context *Clay__currentContext; -thread_local int32_t Clay__nextInitMaxElementCount = 8192; -thread_local int32_t Clay__nextInitMaxMeasureTextCacheWordCount = 8192; - -void Clay__ErrorHandlerFunctionDefault(Clay_ErrorData errorText) { - (void) errorText; -} - #ifndef CLAY__NULL #define CLAY__NULL 0 #endif @@ -566,6 +558,13 @@ void Clay__ErrorHandlerFunctionDefault(Clay_ErrorData errorText) { #define CLAY__MAXFLOAT 3.40282346638528859812e+38F #endif +thread_local Clay_Context *Clay__currentContext; +thread_local int32_t Clay__nextInitMaxElementCount = 8192; +thread_local int32_t Clay__nextInitMaxMeasureTextCacheWordCount = 8192; +void Clay__ErrorHandlerFunctionDefault(Clay_ErrorData errorText) { + (void) errorText; +} + Clay_String CLAY__SPACECHAR = { .length = 1, .chars = " " }; Clay_String CLAY__STRING_DEFAULT = { .length = 0, .chars = NULL };