Projects
Home     Blog     Install     New Ticket     View Tickets     Browse Source

Changeset 307

Show
Ignore:
Timestamp:
2008-07-03 20:59:39 (2 months ago)
Author:
lsansonetti@…
Message:

fix for #86

Location:
MacRuby/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • MacRuby/trunk/vm.c

    r247 r307  
    1414#include "ruby/encoding.h" 
    1515#include "gc.h" 
     16 
     17#if WITH_OBJC 
     18NODE *rb_current_cfunc_node = NULL; 
     19#endif 
    1620 
    1721#include "insnhelper.h" 
  • MacRuby/trunk/vm_eval.c

    r247 r307  
    7373            cfp->method_class = klass; 
    7474 
     75#if WITH_OBJC 
     76            rb_current_cfunc_node = (NODE *)body; 
     77#endif 
    7578            val = call_cfunc(body->nd_cfnc, recv, body->nd_argc, argc, argv); 
     79#if WITH_OBJC 
     80            rb_current_cfunc_node = NULL; 
     81#endif 
    7682 
    7783            if (reg_cfp != th->cfp + 1) { 
  • MacRuby/trunk/vm_insnhelper.c

    r306 r307  
    353353    return Qnil;                /* not reached */ 
    354354} 
    355  
    356 #if WITH_OBJC 
    357 NODE *rb_current_cfunc_node = NULL; 
    358 #endif 
    359355 
    360356static inline VALUE