JSPatch icon indicating copy to clipboard operation
JSPatch copied to clipboard

如何调用C函数指针?

Open xpacificsoda opened this issue 8 years ago • 1 comments

比如定义了一个结构体: typedef struct _void { NSString *(*getInfoDescription)(); } LBAManager;

然后使用: LBAManager* manager = ....; NSString* infoDescription = manager->getInfoDescription(); NSLog(infoDescription);

看了C 函数调用的介绍,但貌似只能调用一些全局的C函数

xpacificsoda avatar Apr 26 '17 09:04 xpacificsoda

目前还不支持这种调用

bang590 avatar Jun 03 '17 03:06 bang590