summaryrefslogtreecommitdiffhomepage
path: root/src/error.c
AgeCommit message (Collapse)Author
2015-11-17DISABLE_STDIO/ENABLE_DEBUG macros to rename; close #3014Yukihiro "Matz" Matsumoto
changes: * rename DISABLE_STDIO -> MRB_DISABLE_STDIO * rename ENABLE_DEBUG -> MRB_ENABLE_DEBUG_HOOK * no more opposite macro definitions (e.g. ENABLE_STDIO, DISABLE_DEBUG). * rewrite above macro references throughout the code. * update documents
2015-10-19Clean up GC codefurunkel
2015-07-16use mrb_str_cat_str() instead of mrb_str_append()cremno
If the argument is always a string, then mrb_str_cat_str() can be directly called instead of indirectly by mrb_str_append(). mrb_any_to_s(), mrb_obj_as_string(), mrb_inspect() always return a string.
2015-07-13refactor mrb_bob_missing to share raising NoMethodError code; fix #2878Yukihiro "Matz" Matsumoto
Note: arguments of mrb_no_method_error() has changed. You need to replace 3rd and 4th argument (say n, argv) to mrb_ary_new_from_values(mrb, n, argv).
2015-05-25Move "src/mrb_throw.h" to "include/mruby/throw.h".take_cheeze
Related to #2760.
2015-05-18fix type of mrb_exc_new()'s len parametercremno
mrb_str_new() takes size_t, so should mrb_exc_new().
2015-01-03Use mrb_exc_new_str_lit().Tatsuhiko Kubo
2014-08-27Add a missing space after ",".Tatsuhiko Kubo
2014-08-04add MRB_API modifiers to mruby API functionsYukihiro "Matz" Matsumoto
2014-07-21Use MRB_TT_EXCEPTION in exception object.take_cheeze
2014-07-12use SystemStackError instead of RuntimeErrorYukihiro "Matz" Matsumoto
2014-06-27initialize nomem_err->mesg->c before exposing to Ruby world; close #2428Yukihiro "Matz" Matsumoto
2014-06-27reduce mrb_funcall in exception allocationYukihiro "Matz" Matsumoto
2014-06-04indent ISO section commentsYukihiro "Matz" Matsumoto
2014-06-04use pre-allocated RuntimeError for out-of-memoryYukihiro "Matz" Matsumoto
2014-06-02Implement `NoMethodError#args`.take_cheeze
2014-05-18Use boolean macro in exc_equal.yui-knk
2014-05-12Rename e to exception, scr_e to script_error.yui-knk
2014-05-11Add scr_e, to not reassign to e.yui-knk
2014-05-04Fix comment of exc_inspect (and adjust spaces)yui-knk
2014-04-26Fix MSVC warnings for error.ckyab
2014-04-16get classname and concatenate ": " only oncecremno
2014-04-16convert exception message to stringcremno
fixes: mruby -e "p ArgumentError.new(1)"
2014-04-16resolve conflictYukihiro "Matz" Matsumoto
2014-04-14exc_inspect: dup file and check mesg only oncecremno
2014-04-11Qualify argv argument of API `const`.Takeshi Watanabe
2014-03-01move jmpbuf_id to generated filetake_cheeze
2014-03-01support c++ exceptiontake_cheeze
2014-02-27use mrb_str_cat_lit() intead of mrb_str_catcubicdaiya
2014-02-27revert 38e9ce21 and API changed; mrb_get_backtrace() -> renamed to ↵Yukihiro "Matz" Matsumoto
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-20move src/error.h to include/mruby/error.htake_cheeze
2014-01-31use mrb_bool, FALSE and TRUE morecremno
It doesn't matter to me if one is using FALSE/TRUE instead of 1/0 but I prefer a type (alias) which emphasizes boolean vars to int. I changed 1/0 to FALSE/TRUE anyway.
2014-01-31clean up external symbolscremno
remove unused and unneeded: - sysexit_status - type (a global variable) add mrb_ prefix to: - codedump_all - class_instance_method_list - parser_dump make various functions static, incl.: - yyparse - make_exception
2014-01-07remove superfluous includescremno
- reduce compile time by a little bit (full-core: ~0.7s for me) - thanks to 'include-what-you-use' for some help - include Standard C header files before any other (coding style)
2013-12-01add mrb_intern_lit for creating symbol from string literaltake_cheeze
2013-11-29rename mrb_intern2() to mrb_intern(); huge API incompatibility; close #1513Yukihiro "Matz" Matsumoto
2013-11-18renamed mrb_exc_new3 to mrb_exc_new_strcremno
- more descriptive name (there's no mrb_exc_new2) - no wrapper (macro/static inline function) for backwards compatibility because nothing besides mruby itself seems to be calling this function: <http://mruby-code-search.ongaeshi.me/home?query=mrb_exc_new3>
2013-10-15better error position displayYukihiro "Matz" Matsumoto
2013-09-03remove Exception#verbose_backtrace; #1495Yukihiro "Matz" Matsumoto
2013-09-02rename debug function nametake_cheeze
2013-09-02support multiple filename in ireptake_cheeze
2013-09-02add verbose_backtracetake_cheeze
2013-08-25add Exception#backtracewanabe
2013-08-13define Class#new in ruby to call #initializeYukihiro "Matz" Matsumoto
2013-07-25refactor out longjmp() to a functionYukihiro "Matz" Matsumoto
2013-07-22change else formattingYukihiro "Matz" Matsumoto
2013-05-20primary mruby fiber implementationYukihiro "Matz" Matsumoto
2013-05-10change mrb_bug to get mrb_state and %S formatterYukihiro "Matz" Matsumoto
2013-05-10change mrb_warn to get mrb_state and %S formatterYukihiro "Matz" Matsumoto
2013-04-25rename every ARGS_XXX to MRB_ARGS_XXX; ref #1206Yukihiro "Matz" Matsumoto