Throw from native code
#5513
-
How do I throw a ruby exception from C-code ? |
Beta Was this translation helpful? Give feedback.
Answered by
matz
Jul 21, 2021
Replies: 1 comment
-
You can use |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
matz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use
mrb_raise()
andmrb_raisef()
. Use the latter if you wantprintf
-like formatting.