def platform_specific_functions():
# use stddecl on windows, cdecl on all other platforms
d = {'library_loader' : ctypes.cdll
,'function_pointer' : ctypes.CFUNCTYPE
}
if platform.system() in ('Windows', 'Microsoft'):
d['library_loader'] = ctypes.windll
d['function_pointer'] = ctypes.WINFUNCTYPE
return d
libload.py 文件源码
python
阅读 22
收藏 0
点赞 0
评论 0
评论列表
文章目录