Closed iOkay closed 5 years ago
Env: xcode 10.1 c++ setting:
I added the test code to main.mm file, and builded failed. Error as follow: "Cannot initialize a member subobject of type 'void *' with an lvalue of type 'int (int)'"
Should wrote like this:
{"close", (void *)my_close, (void **)&orig_close}, {"open", (void *)my_open, (void **)&orig_open},
Converting type must be explicit.
Env: xcode 10.1 c++ setting:![image](https://user-images.githubusercontent.com/2063427/54110087-69b84300-441b-11e9-8141-90453ed67d7a.png)
I added the test code to main.mm file, and builded failed. Error as follow: "Cannot initialize a member subobject of type 'void *' with an lvalue of type 'int (int)'"![image](https://user-images.githubusercontent.com/2063427/54110181-ae43de80-441b-11e9-9d0f-c6a2875cf527.png)