lib/pycall/libpython.rb in pycall-0.1.0.alpha.20170302 vs lib/pycall/libpython.rb in pycall-0.1.0.alpha.20170307
- old
+ new
@@ -135,9 +135,14 @@
attach_function :Py_GetVersion, [], :string
attach_function :Py_InitializeEx, [:int], :void
attach_function :Py_IsInitialized, [], :int
+ # Reference count
+
+ attach_function :Py_IncRef, [PyObject.by_ref], :void
+ attach_function :Py_DecRef, [PyObject.by_ref], :void
+
# Object
attach_function :PyObject_RichCompare, [PyObject.by_ref, PyObject.by_ref, :int], PyObject.by_ref
attach_function :PyObject_GetAttrString, [PyObject.by_ref, :string], PyObject.by_ref
attach_function :PyObject_SetAttrString, [PyObject.by_ref, :string, PyObject.by_ref], :int