spec: use shorter line lengths for forwarding implementation

This commit is contained in:
Danny Robson 2019-03-03 16:50:04 +11:00
parent 1496e7a340
commit bbdc05eead

View File

@ -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<indirect<{obj.params[0].type},cruft::vk::load::{table}_table> 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:]])}