From 4e545c67985299dabc2a061160e126068d43541e Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 10 Feb 2024 15:23:06 -0500 Subject: Better string parsing. --- nextlang.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'nextlang.h') 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 -- cgit v1.2.3