mruby/mruby — pull request #505 by monaka (2012-10-23 00:50:48+00:00)
Title: Change C API for raise.

It calls snprintf() in the current version of mrb_raise(). "raise" is called frequently and snprintf() causes a heavy CPU load (especially tiny embedded systems).
About 60% of mrb_raise call doesn't need formatting.
So we should prepare unformatted version of mrb_raise variant.

API changes in this patch is like this.
mrb_raisef(): new function. Same as previou version of mrb_raise().
mrb_raise(): API modified. It cannot treat variable arguments.