feat(profile): add macros for properly defining the interfaces of vtables

This commit is contained in:
phaneron 2026-04-30 01:32:19 -04:00
parent 8f4b08b0e6
commit 4b438d3528
2 changed files with 23 additions and 4 deletions

View file

@ -4,12 +4,12 @@
DECLARE_STRUCT(GameClientCommands);
DECLARE_STRUCT(GameClientCommands__v_table);
#define INTERFACE GameClientCommands
struct GameClientCommands__v_table {
E_METHOD(GameClientCommands, void, Install);
E_METHOD(GameClientCommands, void, Uninstall);
// void* Install;
// void* Uninstall;
E_METHOD(void, Install);
E_METHOD(void, Uninstall);
};
#undef INTERFACE
struct GameClientCommands {
GameClientCommands__v_table* v_table;