new as a user-level procedure

This commit is contained in:
Ginger Bill
2017-06-25 22:31:30 +01:00
parent 4e7150b470
commit 3ab481df17
5 changed files with 13 additions and 8 deletions
+2 -2
View File
@@ -27,7 +27,7 @@ enum BuiltinProcId {
BuiltinProc_len,
BuiltinProc_cap,
BuiltinProc_new,
// BuiltinProc_new,
BuiltinProc_make,
BuiltinProc_free,
@@ -75,7 +75,7 @@ gb_global BuiltinProc builtin_procs[BuiltinProc_COUNT] = {
{STR_LIT("len"), 1, false, Expr_Expr},
{STR_LIT("cap"), 1, false, Expr_Expr},
{STR_LIT("new"), 1, false, Expr_Expr},
// {STR_LIT("new"), 1, false, Expr_Expr},
{STR_LIT("make"), 1, true, Expr_Expr},
{STR_LIT("free"), 1, false, Expr_Stmt},