diff options
| author | Mistivia <i@mistivia.com> | 2025-06-28 15:49:31 +0800 |
|---|---|---|
| committer | Mistivia <i@mistivia.com> | 2025-06-28 15:51:04 +0800 |
| commit | 0633c6c2797bc9182b2c1888385eac6cb6caed10 (patch) | |
| tree | e920255dda5b6fea67f3eef91b27c4dae069c63e /src/interp.c | |
| parent | 9efc0e78ad1609217752b5aa02fbb389d726e9c7 (diff) | |
add unwind-protect
Diffstat (limited to 'src/interp.c')
| -rw-r--r-- | src/interp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/interp.c b/src/interp.c index 8b5c15f..4a6a455 100644 --- a/src/interp.c +++ b/src/interp.c @@ -122,6 +122,7 @@ void Interp_init(Interp *self) { Interp_add_primitive(self, "assert", primitive_assert); Interp_add_primitive(self, "assert-error", primitive_assert_error); Interp_add_primitive(self, "load", primitive_load); + Interp_add_primitive(self, "unwind-protect", primitive_unwind_protect); Interp_add_userfunc(self, "function?", builtin_functionp); Interp_add_userfunc(self, "map", builtin_map); |
