diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-02-10 15:23:06 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-02-10 15:23:06 -0500 |
| commit | 4e545c67985299dabc2a061160e126068d43541e (patch) | |
| tree | f3b57ff6abd221894f01a4b6b85c068197b83254 /nextlang.h | |
| parent | 930c09f46d1e249fc889e8f1179046a48c1eaf32 (diff) | |
Better string parsing.
Diffstat (limited to 'nextlang.h')
| -rw-r--r-- | nextlang.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |
