aboutsummaryrefslogtreecommitdiff
path: root/code/lib/types.felan
diff options
context:
space:
mode:
Diffstat (limited to 'code/lib/types.felan')
-rw-r--r--code/lib/types.felan8
1 files changed, 8 insertions, 0 deletions
diff --git a/code/lib/types.felan b/code/lib/types.felan
new file mode 100644
index 0000000..8c0cbf1
--- /dev/null
+++ b/code/lib/types.felan
@@ -0,0 +1,8 @@
+string :: []u8;
+
+array :: (comptime size:u64, comptime t:type) -> type {
+ return struct {
+ ptr : t;
+ size : i32 : size;
+ };
+};