这适用于 VS C++,但使用 GCC 编译会产生错误:
“错误:从 'int ( * )(float, int)' 到 'void *' [-fpermissive]| 的无效转换”
#define CLASS_HOOK_FUNC(vtable, name, tableindex) oNHook_##name = (_##name)vtable.HookVTableFunctionByIndex(tableindex, hNHook_##name);
#define HOOK_EXPORT(name) CLASS_HOOK_FUNC(g_ctExport, name, EXPORTID_##name);
HOOK_EXPORT(H_Redraw);