aboutsummaryrefslogtreecommitdiff
path: root/builtins/integers.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-02-17 23:27:02 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-02-17 23:27:02 -0500
commit86f3a8054445ffe8650b7da7450234414b5b1789 (patch)
tree7dd6b1a278d85ca821eb608caf22231a773b2ea1 /builtins/integers.h
parent20b4c6f4973adf52ed3eef57df3aa8d19fef554c (diff)
Split out parts into appropriate headers
Diffstat (limited to 'builtins/integers.h')
-rw-r--r--builtins/integers.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/builtins/integers.h b/builtins/integers.h
index 2843951e..d4679a81 100644
--- a/builtins/integers.h
+++ b/builtins/integers.h
@@ -5,6 +5,16 @@
#include "types.h"
+#define Int64_t int64_t
+#define Int32_t int32_t
+#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 DEFINE_INT_TYPE(c_type, type_name) \
CORD type_name ## __as_str(const c_type *i, bool colorize, const TypeInfo *type); \
int32_t type_name ## __compare(const c_type *x, const c_type *y, const TypeInfo *type); \