Created
October 14, 2014 15:22
-
-
Save mrbrdo/920235f81a849205cdbb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct mrb_jmpbuf buf; | |
MRB_TRY(&buf) { | |
mrb->jmp = &buf; | |
} | |
MRB_CATCH(&buf) { | |
// handle error | |
} | |
MRB_END_EXC(&buf); | |
// call mruby code that throws error |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment