aboutsummaryrefslogtreecommitdiff
path: root/stdlib/text.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-10-30 13:59:15 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-10-30 13:59:15 -0400
commitbdca4fc6e1d3a9ce1306313528067f012a60341b (patch)
treeb49af20b040d1fe893b81c70c8b0ba19cecb6ca3 /stdlib/text.h
parenta0178a1e0ccfd706f6d69b5b4a876f1ee70cdc28 (diff)
Fix header inline functions to use `extern inline` and some GCC magic
Diffstat (limited to 'stdlib/text.h')
-rw-r--r--stdlib/text.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/stdlib/text.h b/stdlib/text.h
index 4483c59e..bcdccfeb 100644
--- a/stdlib/text.h
+++ b/stdlib/text.h
@@ -9,6 +9,7 @@
#include "datatypes.h"
#include "integers.h"
+#include "util.h"
typedef struct {
Text_t text;
@@ -56,7 +57,7 @@ Text_t Text$repeat(Text_t text, Int_t count);
int32_t Text$get_grapheme_fast(TextIter_t *state, int64_t index);
uint32_t Text$get_main_grapheme_fast(TextIter_t *state, int64_t index);
-static INLINE int32_t Text$get_grapheme(Text_t text, int64_t index)
+MACROLIKE int32_t Text$get_grapheme(Text_t text, int64_t index)
{
TextIter_t state = {text, 0, 0};
return Text$get_grapheme_fast(&state, index);