Sha256: 8ad81f713225231af8cd9482192b6db8cab2479118f19cf5ca204d271bef6ac0
Contents?: true
Size: 618 Bytes
Versions: 2
Compression:
Stored size: 618 Bytes
Contents
#include "rp_function.h" #include "rp_object.h" RUBY_EXTERN VALUE mRubyPythonBridge; RUBY_EXTERN VALUE cRubyPyObject; VALUE cRubyPyFunction; VALUE rpFunctionFromPyObject(PyObject *pFunc) { PObj* self; VALUE rFunc = rb_class_new_instance(0, NULL, cRubyPyFunction); Data_Get_Struct(rFunc, PObj, self); self->pObject = pFunc; return rFunc; } // // A wrapper class for Python functions and methods. // // This is used internally to aid RubyPyClass in delegating method calls. // void Init_RubyPyFunction() { cRubyPyFunction = rb_define_class_under(mRubyPythonBridge,"RubyPyFunction", cRubyPyObject); }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubypython-0.2.10 | ext/rubypython_bridge/rp_function.c |
rubypython-0.2.9 | ext/rubypython_bridge/rp_function.c |