4 ms·
Virtual tables are not quite the same thing. You can grep for every instantiation of the struct in the code-base. If anything, macros are more problematic:
by Peaker 13y ago
Virtual tables are not quite the same thing.
You can grep for every instantiation of the struct in the code-base.
If anything, macros are more problematic:
#define VTABLE_INIT(prefix) \
(struct vtable){ .add = &prefix##_add, .sub = &prefix##_sub, and so forth }