[macruby-changes] [1387] MacRuby/branches/experimental/roxor.cpp
source_changes at macosforge.org
source_changes at macosforge.org
Mon Apr 6 18:46:25 PDT 2009
Revision: 1387
http://trac.macosforge.org/projects/ruby/changeset/1387
Author: lsansonetti at apple.com
Date: 2009-04-06 18:46:24 -0700 (Mon, 06 Apr 2009)
Log Message:
-----------
fixed Exception#backtrace
Modified Paths:
--------------
MacRuby/branches/experimental/roxor.cpp
Modified: MacRuby/branches/experimental/roxor.cpp
===================================================================
--- MacRuby/branches/experimental/roxor.cpp 2009-04-06 23:22:35 UTC (rev 1386)
+++ MacRuby/branches/experimental/roxor.cpp 2009-04-07 01:46:24 UTC (rev 1387)
@@ -6311,6 +6311,7 @@
rb_vm_raise(VALUE exception)
{
rb_objc_retain((void *)exception);
+ rb_iv_set(exception, "bt", rb_vm_backtrace(100));
GET_VM()->current_exception = exception;
void *exc = __cxa_allocate_exception(0);
__cxa_throw(exc, NULL, NULL);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090406/fc6d9a20/attachment-0001.html>
More information about the macruby-changes
mailing list