aboutsummaryrefslogtreecommitdiff
path: root/src/tilde_builtin.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2023-08-03 14:46:22 +0100
committergingerBill <bill@gingerbill.org>2023-08-03 14:46:22 +0100
commit4a71603a777783a2ee4cd78368f1b1fbe76d7773 (patch)
tree7caa15df7d9fe394a602648dea67f0bd1f4953a6 /src/tilde_builtin.cpp
parentaadc8477b9773a5d2f22310cad5833e81c15c4bd (diff)
Add hasher proc generation
Diffstat (limited to 'src/tilde_builtin.cpp')
-rw-r--r--src/tilde_builtin.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tilde_builtin.cpp b/src/tilde_builtin.cpp
index edf436424..9dbc3f7c5 100644
--- a/src/tilde_builtin.cpp
+++ b/src/tilde_builtin.cpp
@@ -432,6 +432,12 @@ gb_internal cgValue cg_build_builtin(cgProcedure *p, BuiltinProcId id, Ast *expr
return cg_emit_runtime_call(p, "__type_info_of", args);
}
+
+ case BuiltinProc_type_equal_proc:
+ return cg_equal_proc_value_for_type(p, ce->args[0]->tav.type);
+
+ case BuiltinProc_type_hasher_proc:
+ return cg_hasher_proc_value_for_type(p, ce->args[0]->tav.type);
}