diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-09-29 10:21:10 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-10-12 18:20:29 +0900 |
| commit | 3d6adccfbec44fb13a75ef7055f10fb87242d1fc (patch) | |
| tree | 046e3941a84587f2407d32317afeaff2e9f2aa20 /mrbgems/mruby-socket/src/socket.c | |
| parent | 5069fb15e41998dffef8e0ba566b3a82be369ba3 (diff) | |
| download | mruby-3d6adccfbec44fb13a75ef7055f10fb87242d1fc.tar.gz mruby-3d6adccfbec44fb13a75ef7055f10fb87242d1fc.zip | |
Add a new function `mrb_exc_protect()`.
`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.
Diffstat (limited to 'mrbgems/mruby-socket/src/socket.c')
0 files changed, 0 insertions, 0 deletions
