diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-12-13 04:31:06 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-12-13 04:31:06 +0000 |
commit | 0aed7c6874ba75f1a85899d0ed0ea07b24a9f3ef (patch) | |
tree | 71350c2b48c1b2defd672ed3f672d130a7e5ebc0 /internal.h | |
parent | 4547d773c2ea02864df5658a99d18718626e902d (diff) | |
download | ruby-0aed7c6874ba75f1a85899d0ed0ea07b24a9f3ef.tar.gz |
* error.c: add Exception#backtrace_locations.
Now, there are no setter and independent from Exception#backtrace.
[Feature #8960]
* eval.c (setup_exception): set backtrace locations for `bt_location'
special attribute.
* vm_backtrace.c (rb_backtrace_to_location_ary): added.
* internal.h: ditto.
* test/ruby/test_backtrace.rb: add a test for
Exception#backtrace_locations.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'internal.h')
-rw-r--r-- | internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/internal.h b/internal.h index 51e626a493..344963243a 100644 --- a/internal.h +++ b/internal.h @@ -800,6 +800,7 @@ VALUE rb_make_backtrace(void); void rb_backtrace_print_as_bugreport(void); int rb_backtrace_p(VALUE obj); VALUE rb_backtrace_to_str_ary(VALUE obj); +VALUE rb_backtrace_to_location_ary(VALUE obj); void rb_backtrace_print_to(VALUE output); VALUE rb_vm_backtrace_object(void); |