I am porting assembly code to C++ and I have some problems porting a portion of it.
I have a pointer declared as:
void* function;
and it is pointing to a function call:
void* function = getfunction(lib, fname);
I have a inline assembly code which I have to migrate to C++:
__asm { call function }
How to call this pointer in C++?
Please note that the arguments lib
and fname
are
of type void*
.
And void* function points to value returned by "getfunction"