diff options
| author | Masaki Muranaka <[email protected]> | 2012-10-23 09:42:22 +0900 |
|---|---|---|
| committer | Masaki Muranaka <[email protected]> | 2012-10-23 09:42:22 +0900 |
| commit | 6069a33089916d7059c2bd2aeddc02a3eb440520 (patch) | |
| tree | 2f075f79749e207a57a0142a039626e1f465b727 /include | |
| parent | e05bbd45bb328b6ce3af0056a3d314ce5068abd6 (diff) | |
| download | mruby-6069a33089916d7059c2bd2aeddc02a3eb440520.tar.gz mruby-6069a33089916d7059c2bd2aeddc02a3eb440520.zip | |
mrb_raisef(): new function. Same as previou version of mrb_raise().
mrb_raise(): API modified. It cannot treat variable arguments.
Diffstat (limited to 'include')
| -rw-r--r-- | include/mruby.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/mruby.h b/include/mruby.h index b741e6444..94fa393ea 100644 --- a/include/mruby.h +++ b/include/mruby.h @@ -282,8 +282,8 @@ mrb_value mrb_exc_new(mrb_state *mrb, struct RClass *c, const char *ptr, long le void mrb_exc_raise(mrb_state *mrb, mrb_value exc); int mrb_block_given_p(void); -void mrb_raise(mrb_state *mrb, struct RClass *c, const char *fmt, ...); -void rb_raise(struct RClass *c, const char *fmt, ...); +void mrb_raise(mrb_state *mrb, struct RClass *c, const char *msg); +void mrb_raisef(mrb_state *mrb, struct RClass *c, const char *fmt, ...); void mrb_warn(const char *fmt, ...); void mrb_bug(const char *fmt, ...); |
