[MacRuby] #1414: Extension API - inconsistet Class definition
#1414: Extension API - inconsistet Class definition -----------------------------------+---------------------------------------- Reporter: torsten@… | Owner: lsansonetti@… Type: defect | Status: new Priority: minor | Milestone: Component: MacRuby | Keywords: extensions -----------------------------------+---------------------------------------- Hi, after reading good things about MacRuby I'm trying to get my extension to compile. That is looking quite good, until I use RCLASS_SUPER to find out super class and the compilation stops. There is a cast to (Class) which is actually undefined. I guess that is defined elsewhere, but it seems to me the C api should not rely on that and define it as VALUE. I'm on 10.6 with gcc 4.2.1 -- Ticket URL: <http://www.macruby.org/trac/ticket/1414> MacRuby <http://macruby.org/>
#1414: Extension API - inconsistet Class definition -----------------------------------+---------------------------------------- Reporter: torsten@… | Owner: lsansonetti@… Type: defect | Status: new Priority: minor | Milestone: Component: MacRuby | Keywords: extensions -----------------------------------+---------------------------------------- Comment(by torsten@…): Can probably be fixed by simply using equivalent general code. I used rb_funcall(RBASIC(obj)->klass , rb_intern("superclass") , 0 ) To get the same functionality done. So the extension compiles and (hip hip hurrah) I can start debugging the SegFaults -- Ticket URL: <http://www.macruby.org/trac/ticket/1414#comment:1> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby