aboutsummaryrefslogtreecommitdiff
path: root/nextlang.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-02-10 15:23:06 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-02-10 15:23:06 -0500
commit4e545c67985299dabc2a061160e126068d43541e (patch)
treef3b57ff6abd221894f01a4b6b85c068197b83254 /nextlang.h
parent930c09f46d1e249fc889e8f1179046a48c1eaf32 (diff)
Better string parsing.
Diffstat (limited to 'nextlang.h')
-rw-r--r--nextlang.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/nextlang.h b/nextlang.h
index 2cbcac0b..2e55b1cf 100644
--- a/nextlang.h
+++ b/nextlang.h
@@ -35,6 +35,7 @@
int32_t: CORD_asprintf("%d", x), int64_t: CORD_asprintf("%ld", x), \
double: CORD_asprintf("%g", x), float: CORD_asprintf("%g", x), \
CORD: x, \
+ char*: x, \
default: "???")
#define __heap(x) (__typeof(x)*)memcpy(GC_MALLOC(sizeof(x)), (__typeof(x)[1]){x}, sizeof(x))
#define __stack(x) (&(__typeof(x)){x})
@@ -56,3 +57,5 @@
#define mod1(x, n) (((x) % (n)) + (__typeof(x))1)
#define say(str) puts(CORD_to_const_char_star(str))
+
+// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0