From c1b3671f852aecc72d049d1d4950b4c83db545d1 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Sun, 21 Apr 2019 09:08:54 +1000 Subject: [PATCH] spec: avoid parenthetical ambiguities when type casting --- tools/spec.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/spec.py b/tools/spec.py index efdc423..4313b30 100644 --- a/tools/spec.py +++ b/tools/spec.py @@ -923,15 +923,15 @@ def write_dispatch(dst: TextIO, q: List[Type], reg: Registry): auto wrapped = std::make_unique> (); wrapped->handle = res[i]; - //#define GET(NAME) wrapped->table.NAME = wrapped->table.NAME ?: reinterpret_cast (cruft::vk::load::v_table->vk_icdGetPhysicalDeviceProcAddr (entry->handle, #NAME)); + //#define GET(NAME) wrapped->table.NAME = wrapped->table.NAME ?: reinterpret_cast (cruft::vk::load::v_table->vk_icdGetPhysicalDeviceProcAddr (entry->handle, #NAME)); //MAP_INSTANCE_COMMANDS(GET) //#undef GET - #define GET(NAME) wrapped->table.NAME = wrapped->table.NAME ?: reinterpret_cast (cruft::vk::load::v_table->vk_icdGetInstanceProcAddr (entry->handle, #NAME)); + #define GET(NAME) wrapped->table.NAME = wrapped->table.NAME ?: reinterpret_cast (cruft::vk::load::v_table->vk_icdGetInstanceProcAddr (entry->handle, #NAME)); MAP_INSTANCE_COMMANDS(GET) #undef GET - #define GET(NAME) wrapped->table.NAME = wrapped->table.NAME ?: reinterpret_cast (entry->table.vkGetInstanceProcAddr (entry->handle, #NAME)); + #define GET(NAME) wrapped->table.NAME = wrapped->table.NAME ?: reinterpret_cast (entry->table.vkGetInstanceProcAddr (entry->handle, #NAME)); MAP_INSTANCE_COMMANDS(GET) #undef GET