summaryrefslogtreecommitdiffhomepage
path: root/src/vm.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2013-11-18 16:24:42 -0800
committerYukihiro "Matz" Matsumoto <[email protected]>2013-11-18 16:24:42 -0800
commitf9b14f49e6415ff9dcb0d5dee11c93f6fec5ec5c (patch)
treef8f080c8d11c501d5382d21021d073b39cad53b1 /src/vm.c
parente4c2f9c14fac2c0dbc6b7489c9637ea25846da19 (diff)
parentaacadb23657fb244821aac891a3eec8aac2f707a (diff)
downloadmruby-f9b14f49e6415ff9dcb0d5dee11c93f6fec5ec5c.tar.gz
mruby-f9b14f49e6415ff9dcb0d5dee11c93f6fec5ec5c.zip
Merge pull request #1584 from cremno/rename-mrb_exc_new3
renamed mrb_exc_new3 to mrb_exc_new_str
Diffstat (limited to 'src/vm.c')
-rw-r--r--src/vm.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/vm.c b/src/vm.c
index 30c7652a7..e3e2a9f54 100644
--- a/src/vm.c
+++ b/src/vm.c
@@ -490,7 +490,7 @@ localjump_error(mrb_state *mrb, localjump_error_kind kind)
msg = mrb_str_buf_new(mrb, sizeof(lead) + 7);
mrb_str_buf_cat(mrb, msg, lead, sizeof(lead) - 1);
mrb_str_buf_cat(mrb, msg, kind_str[kind], kind_str_len[kind]);
- exc = mrb_exc_new3(mrb, E_LOCALJUMP_ERROR, msg);
+ exc = mrb_exc_new_str(mrb, E_LOCALJUMP_ERROR, msg);
mrb->exc = mrb_obj_ptr(exc);
}
@@ -509,7 +509,7 @@ argnum_error(mrb_state *mrb, int num)
str = mrb_format(mrb, "wrong number of arguments (%S for %S)",
mrb_fixnum_value(mrb->c->ci->argc), mrb_fixnum_value(num));
}
- exc = mrb_exc_new3(mrb, E_ARGUMENT_ERROR, str);
+ exc = mrb_exc_new_str(mrb, E_ARGUMENT_ERROR, str);
mrb->exc = mrb_obj_ptr(exc);
}
@@ -1336,7 +1336,7 @@ mrb_context_run(mrb_state *mrb, struct RProc *proc, mrb_value self, unsigned int
goto L_RAISE;
}
if (mrb->c->prev->ci == mrb->c->prev->cibase) {
- mrb_value exc = mrb_exc_new3(mrb, E_RUNTIME_ERROR, mrb_str_new(mrb, "double resume", 13));
+ mrb_value exc = mrb_exc_new_str(mrb, E_RUNTIME_ERROR, mrb_str_new(mrb, "double resume", 13));
mrb->exc = mrb_obj_ptr(exc);
goto L_RAISE;
}
@@ -2143,10 +2143,10 @@ mrb_context_run(mrb_state *mrb, struct RProc *proc, mrb_value self, unsigned int
mrb_value exc;
if (GETARG_A(i) == 0) {
- exc = mrb_exc_new3(mrb, E_RUNTIME_ERROR, msg);
+ exc = mrb_exc_new_str(mrb, E_RUNTIME_ERROR, msg);
}
else {
- exc = mrb_exc_new3(mrb, E_LOCALJUMP_ERROR, msg);
+ exc = mrb_exc_new_str(mrb, E_LOCALJUMP_ERROR, msg);
}
mrb->exc = mrb_obj_ptr(exc);
goto L_RAISE;