aboutsummaryrefslogtreecommitdiff
path: root/src/checker.c
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-04-30 15:09:36 +0100
committerGinger Bill <bill@gingerbill.org>2017-04-30 15:09:36 +0100
commit784f3ecf7e427c1d948541f62253d6d2eab9e70d (patch)
treedd1dba8ff48b3b31944773fc341de8832b0fd582 /src/checker.c
parent54ea70df985546fa2d1fc95f55b5a83a41ee469c (diff)
Syntax change: cast(T)x => T(x); union_cast(T)x => x.(T); transmute(T)x => transmute(T, x); `y:=^x` => `y:=&x;`
Sorry for all the code breaking in this commit :(
Diffstat (limited to 'src/checker.c')
-rw-r--r--src/checker.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/checker.c b/src/checker.c
index d61e33633..9c40cd348 100644
--- a/src/checker.c
+++ b/src/checker.c
@@ -52,7 +52,6 @@ typedef enum BuiltinProcId {
BuiltinProc_panic,
BuiltinProc_copy,
- // BuiltinProc_append,
BuiltinProc_swizzle,
@@ -72,6 +71,8 @@ typedef enum BuiltinProcId {
BuiltinProc_abs,
BuiltinProc_clamp,
+ BuiltinProc_transmute,
+
BuiltinProc_Count,
} BuiltinProcId;
gb_global BuiltinProc builtin_procs[BuiltinProc_Count] = {
@@ -123,6 +124,8 @@ gb_global BuiltinProc builtin_procs[BuiltinProc_Count] = {
{STR_LIT("max"), 2, false, Expr_Expr},
{STR_LIT("abs"), 1, false, Expr_Expr},
{STR_LIT("clamp"), 3, false, Expr_Expr},
+
+ {STR_LIT("transmute"), 2, false, Expr_Expr},
};