aboutsummaryrefslogtreecommitdiff
path: root/nextlang.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-02-13 23:12:20 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-02-13 23:12:20 -0500
commit1f2b288b32b61dca84fa39eb048e30fbee1262aa (patch)
treed8afc5020337d6bb253461a41bc192343da91a28 /nextlang.h
parentb3f61e16ce3c156a19b8a07ebca17e95cd919c35 (diff)
Slightly more concise generated code for ints
Diffstat (limited to 'nextlang.h')
-rw-r--r--nextlang.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/nextlang.h b/nextlang.h
index d434b3b3..db72661a 100644
--- a/nextlang.h
+++ b/nextlang.h
@@ -18,6 +18,10 @@
#define Int16_t int16_t
#define Int8_t int8_t
#define Int_t int64_t
+#define I64(x) ((int64_t)x)
+#define I32(x) ((int32_t)x)
+#define I16(x) ((int16_t)x)
+#define I8(x) ((int8_t)x)
#define Num64_t double
#define Num32_t float