We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 422b290 commit 8788c41Copy full SHA for 8788c41
pyray/__init__.py
@@ -70,11 +70,13 @@ def to_str(value):
70
return ffi.string(value).decode('utf-8')
71
72
def to_pointer(value):
73
- return ffi.addressof(value)
+ if str(type(value)) == "<class '_cffi_backend.__CDataOwn'>":
74
+ return ffi.addressof(value)
75
+ return value
76
77
78
def makeFunc(c_func):
- #print("makefunc ",a, ffi.typeof(a).args)
79
+ #print("makefunc ", c_func, ffi.typeof(c_func).args)
80
81
# based on ctypes of arguments of the c function
82
# we build a list of converters to call on python function arguments
0 commit comments