diff --git a/tools/spec.py b/tools/spec.py index 3087a41..efdc423 100644 --- a/tools/spec.py +++ b/tools/spec.py @@ -1028,7 +1028,7 @@ def write_trace(dst: TextIO, q: List[Type], reg: Registry): } #undef FWD - #define FWD(NAME) if (!strcmp(#NAME,pName)) { return (PFN_vkVoidFunction)NAME; } + #define FWD(NAME) if (!strcmp(#NAME,pName)) { return reinterpret_cast (NAME); } MAP_INSTANCE_COMMANDS(FWD) #undef FWD std::clog << "Unhooked: " << pName << '\\n';