Lumiera
0.pre.03
»edit your freedom«
|
Go to the source code of this file.
This allows one to do polymorphic programming in C by referencing a vtable member which contains function pointers to a structure and then calling this 'virtual' functions through the VCALL macro.
Definition in file vcall.h.
#include <nobug.h>
Macros | |
#define | LUMIERA_VCALL(self, function, ...) |
helper macro for calling vtable functions just adds syntacic sugar VCALL(obj, func, params...) translates to obj->vtable->func(obj, params...) plus some saftey checks More... | |
#define | VCALL LUMIERA_VCALL |
#define LUMIERA_VCALL | ( | self, | |
function, | |||
... | |||
) |
helper macro for calling vtable functions just adds syntacic sugar VCALL(obj, func, params...) translates to obj->vtable->func(obj, params...) plus some saftey checks