Yukihiro "Matz" Matsumoto
206f89e209
add MRB_API modifiers to mruby API functions
2014-08-04 00:47:08 +09:00
take_cheeze
3c96602574
Use MRB_TT_EXCEPTION in exception object.
2014-07-21 23:09:13 +09:00
take_cheeze
acec9d1ff1
Implement NoMethodError#args.
2014-06-02 22:38:02 +09:00
Yukihiro "Matz" Matsumoto
3cbae53541
move prototype of mrb_format() from error.h to mruby.h; ref #2274
2014-05-20 14:53:42 +09:00
take_cheeze
208bafba2d
Move Kernel#fail definition to mruby-kernel-ext mrbgem.
2014-05-07 00:01:30 +09:00
Takeshi Watanabe
824d3450c5
Qualify argv argument of API const.
2014-04-11 20:38:23 +09:00
cremno
e4afd5374f
add mrb_strlen_lit which makes _lit macros safer
...
strlen(3) + string literal is usually optimized but strlen(3) doesn't
check if its argument is really a string literal. This is important for
mruby's _static functions to which some _lit macros are expanded (string
literals have static storage). See comment for some additional info.
remove unnecessary parentheses
2014-03-12 17:56:08 +01:00
cremno
cbc84ba5b2
error.h: add extern "C" for C++
2014-03-05 19:50:13 +01:00
cubicdaiya
a514e31f6b
introduce mrb_exc_new_str_lit for C string literals
2014-03-04 02:45:13 +09:00
take_cheeze
78915f9601
support c++ exception
2014-03-01 20:05:29 +09:00
Yukihiro "Matz" Matsumoto
5b8229715d
revert 38e9ce21 and API changed; mrb_get_backtrace() -> renamed to mrb_exc_backtrace since this is a backtrace method implementation of Exception; mrb_get_backtrace_at() -> removed; mrb_get_backtrace() -> added to get backtrace in array (like caller)
2014-02-27 04:34:30 +09:00
Yukihiro "Matz" Matsumoto
38e9ce21f8
add new function mrb_get_backtrace_at() to get backtrace at ci and pc
2014-02-27 03:45:52 +09:00
take_cheeze
08ea324593
move src/error.h to include/mruby/error.h
2014-02-20 22:41:29 +09:00