diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-09-03 23:35:42 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-09-03 23:35:42 -0400 |
| commit | 805082d2990c780328bef7d0d8ebc5601ef02eb1 (patch) | |
| tree | 8488d9fbbb58f276b0bc277b79bd13bd2a2bdf57 /builtins | |
| parent | f60edfbe7f7fe4a3f62228aeafc18a1819de5319 (diff) | |
Minor codegen cleanup Texts(...)
Diffstat (limited to 'builtins')
| -rw-r--r-- | builtins/text.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/builtins/text.h b/builtins/text.h index b343798d..3aa51872 100644 --- a/builtins/text.h +++ b/builtins/text.h @@ -20,6 +20,7 @@ int Text$print(FILE *stream, Text_t t); void Text$visualize(Text_t t); Text_t Text$_concat(int n, Text_t items[n]); #define Text$concat(...) Text$_concat(sizeof((Text_t[]){__VA_ARGS__})/sizeof(Text_t), (Text_t[]){__VA_ARGS__}) +#define Texts(...) Text$concat(__VA_ARGS__) Text_t Text$slice(Text_t text, Int_t first_int, Int_t last_int); Text_t Text$from_str(const char *str); uint64_t Text$hash(Text_t *text); |
