• Yukihiro "Matz" Matsumoto's avatar
    Add a new function `mrb_exc_protect()`. · 3d6adccf
    Yukihiro "Matz" Matsumoto authored
    `mrb_exc_protect()` takes two C functions, `body` to be executed first,
    and `resc` to be executed when an error happens during `body` execution.
    Since `mrb_exc_protect()` should be compiled with the proper compiler,
    we will not see the problem like #5088 that was caused by `setjmp()` and
    `throw` mixture.
    3d6adccf
error.c 16.3 KB