aboutsummaryrefslogtreecommitdiff
path: root/src/interp.c
diff options
context:
space:
mode:
authorMistivia <i@mistivia.com>2025-06-22 16:17:20 +0800
committerMistivia <i@mistivia.com>2025-06-22 16:17:20 +0800
commit5c0eddbed7f838daac17e0b9d9c2a23f17da4660 (patch)
tree583026ff5f0614d6e6672e6bbb7879c24c701236 /src/interp.c
parentb19a0b2ea246be5610812bf7dd4088e0c4a70952 (diff)
min, max
Diffstat (limited to 'src/interp.c')
-rw-r--r--src/interp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/interp.c b/src/interp.c
index d7e06ed..8813d37 100644
--- a/src/interp.c
+++ b/src/interp.c
@@ -86,6 +86,8 @@ void Interp_init(Interp *self) {
Interp_add_primitive(self, "assert-error", primitive_assert_error);
Interp_add_primitive(self, "load", primitive_load);
+ Interp_add_userfunc(self, "min", builtin_min);
+ Interp_add_userfunc(self, "max", builtin_max);
Interp_add_userfunc(self, "eq", builtin_eq);
Interp_add_userfunc(self, "equal", builtin_equal);
Interp_add_userfunc(self, "format", builtin_format);