[vkgen] Allow mixed dictionary .type parsing

This commit is contained in:
Bill Currie 2023-02-21 00:42:12 +09:00
parent 421467529f
commit f13bc4f4b1

View file

@ -126,8 +126,10 @@ write_function_tail (Struct *self)
static void static void
write_parse_type (Struct *self) write_parse_type (Struct *self)
{ {
fprintf (output_file, "\t\treturn PL_ParseStruct (%s_fields, item, data, " fprintf (output_file, "\t\tif (!PL_ParseStruct (%s_fields, item, data, "
"messages, context);\n", [self outname]); "messages, context)) {\n", [self outname]);
fprintf (output_file, "\t\t\treturn 0;\n");
fprintf (output_file, "\t\t}\n");
} }
static void static void