|
infix
A JIT-Powered FFI Library for C
|
Cookbook Chapter 5: Calling C++ Virtual Functions. More...
Functions | |
| int | main () |
Variables | |
| const char * | LIB_NAME = "./libshapes.so" |
Cookbook Chapter 5: Calling C++ Virtual Functions.
This example demonstrates how to call a C++ virtual function from C without any wrappers. This is achieved by emulating the compiler's v-table dispatch mechanism:
infix to call that function pointer, passing the object as the first ('this') argument. | int main | ( | void | ) |
| const char* LIB_NAME = "./libshapes.so" |