def set_fnclex(context, c_helpers):
 ptr_set_fnclex = c_helpers['set_fnclex']
 fn = ctypes.CFUNCTYPE(None, ctypes.c_void_p)(ptr_set_fnclex)
 library = compile_fnclex(context)
 fnclex_ptr = library.get_pointer_to_function('fnclex')
 fn(fnclex_ptr)
 return library

def set_fnclex ( context , c_helpers ) : ptr_set_fnclex = c_helpers [ 'set_fnclex' ] fn = ctypes . CFUNCTYPE ( None , ctypes . c_void_p ) ( ptr_set_fnclex ) library = compile_fnclex ( context ) fnclex_ptr = library . get_pointer_to_function ( 'fnclex' ) fn ( fnclex_ptr ) return library
install fnclex before fmod calls .