diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-04-30 15:09:36 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-04-30 15:09:36 +0100 |
| commit | 784f3ecf7e427c1d948541f62253d6d2eab9e70d (patch) | |
| tree | dd1dba8ff48b3b31944773fc341de8832b0fd582 /src/checker.c | |
| parent | 54ea70df985546fa2d1fc95f55b5a83a41ee469c (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.c | 5 |
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}, }; |