mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
numeric.c: add mrb_noreturn qualifier to error functions.
- mrb_int_zerodiv() - mrb_int_overflow()
This commit is contained in:
+2
-2
@@ -21,13 +21,13 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
void
|
||||
mrb_noreturn void
|
||||
mrb_int_overflow(mrb_state *mrb, const char *reason)
|
||||
{
|
||||
mrb_raisef(mrb, E_RANGE_ERROR, "integer overflow in %s", reason);
|
||||
}
|
||||
|
||||
void
|
||||
mrb_noreturn void
|
||||
mrb_int_zerodiv(mrb_state *mrb)
|
||||
{
|
||||
mrb_raise(mrb, E_ZERODIV_ERROR, "divided by 0");
|
||||
|
||||
Reference in New Issue
Block a user