From bbdc05eead9b2db305349a38cdd76f32b71b054f Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Sun, 3 Mar 2019 16:50:04 +1100 Subject: [PATCH] spec: use shorter line lengths for forwarding implementation --- tools/spec.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/spec.py b/tools/spec.py index ac04e65..8a347d3 100644 --- a/tools/spec.py +++ b/tools/spec.py @@ -960,7 +960,9 @@ def write_dispatch(dst: TextIO, q: List[Type], reg: Registry): forwarding = f"return ::cruft::vk::load::i_table->{obj.name} ({', '.join (i.name for i in obj.params)});" else: forwarding = f""" - auto const entry = reinterpret_cast const*> ({obj.params[0].name}); + auto const entry = reinterpret_cast< + indirect<{obj.params[0].type},cruft::vk::load::{table}_table> const* + > ({obj.params[0].name}); return (entry->table.{obj.name})( {", ".join(['entry->handle'] + [p.name for p in obj.params[1:]])}