From fa6a5e103d346736f7aaca37beae98b2ea56859c Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Wed, 13 Mar 2019 18:16:49 +1100 Subject: [PATCH] tools/spec: prefer pointer to decltype over decltype pointer --- tools/spec.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/spec.py b/tools/spec.py index 8e01216..3087a41 100644 --- a/tools/spec.py +++ b/tools/spec.py @@ -871,11 +871,11 @@ def write_dispatch(dst: TextIO, q: List[Type], reg: Registry): if (err != VK_SUCCESS) return err; - #define GET(NAME) res->table.NAME = reinterpret_cast (cruft::vk::load::v_table->vk_icdGetInstanceProcAddr (res->handle, #NAME)); + #define GET(NAME) res->table.NAME = reinterpret_cast (cruft::vk::load::v_table->vk_icdGetInstanceProcAddr (res->handle, #NAME)); MAP_INSTANCE_COMMANDS(GET) #undef GET - #define GET(NAME) if (!res->table.NAME) res->table.NAME = reinterpret_cast (res->table.vkGetInstanceProcAddr (res->handle, #NAME)); + #define GET(NAME) if (!res->table.NAME) res->table.NAME = reinterpret_cast (res->table.vkGetInstanceProcAddr (res->handle, #NAME)); MAP_INSTANCE_COMMANDS(GET) #undef GET