summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2020-09-29 16:44:04 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2020-10-12 18:20:30 +0900
commit82046ff26ec9ae93d6d0cb5132a1dfd9651b5c3f (patch)
treef4e36e2d7642887b9c968efff6710651a14f48b7 /include
parent3d6adccfbec44fb13a75ef7055f10fb87242d1fc (diff)
downloadmruby-82046ff26ec9ae93d6d0cb5132a1dfd9651b5c3f.tar.gz
mruby-82046ff26ec9ae93d6d0cb5132a1dfd9651b5c3f.zip
Revert "Add a new function `mrb_exc_protect()`."
This reverts commit 8746a6fe4e7bda8a0fbc0eaece9314ec51a0c255. We already have `mrb_protect()`, `mrb_ensure()` and `mrb_rescue()` functions. If you need to handle exceptions from C functions, use those functions above.
Diffstat (limited to 'include')
-rw-r--r--include/mruby.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/mruby.h b/include/mruby.h
index 4bbffb189..52bcd58bf 100644
--- a/include/mruby.h
+++ b/include/mruby.h
@@ -1293,9 +1293,6 @@ MRB_API void mrb_print_backtrace(mrb_state *mrb);
MRB_API void mrb_print_error(mrb_state *mrb);
/* function for `raisef` formatting */
MRB_API mrb_value mrb_vformat(mrb_state *mrb, const char *format, va_list ap);
-/* function to protect errors during execution */
-MRB_API mrb_value mrb_exc_protect(mrb_state *mrb, mrb_value (*body)(mrb_state*, void*), void *a, mrb_value (*resc)(mrb_state*, void*, mrb_value), void *b);
-
/* macros to get typical exception objects
note: