File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 1313# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
1414
1515from raylib import rl , ffi
16+ from ctypes import c_int , c_float , c_double , c_uint
1617from inspect import ismethod ,getmembers ,isbuiltin
1718import inflection
1819
@@ -70,11 +71,13 @@ def to_str(value):
7071 return ffi .string (value ).decode ('utf-8' )
7172
7273def to_pointer (value ):
73- return ffi .addressof (value )
74+ if str (type (value )) == "<class '_cffi_backend.__CDataOwn'>" :
75+ return ffi .addressof (value )
76+ return value
7477
7578
7679def makeFunc (c_func ):
77- #print("makefunc ",a , ffi.typeof(a ).args)
80+ #print("makefunc ", c_func , ffi.typeof(c_func ).args)
7881
7982 # based on ctypes of arguments of the c function
8083 # we build a list of converters to call on python function arguments
You can’t perform that action at this time.
0 commit comments