1.1 --- a/generator.py Sun Oct 30 01:16:02 2016 +0200
1.2 +++ b/generator.py Sun Oct 30 13:13:43 2016 +0100
1.3 @@ -279,6 +279,11 @@
1.4 structure = self.populate_function(path, function_instance_attrs, False)
1.5 self.write_structure(f_decls, f_defs, path, table_name, structure_size, structure)
1.6
1.7 + # Functions with defaults need to declare instance structures.
1.8 +
1.9 + if self.importer.function_defaults.get(path):
1.10 + self.write_instance_structure(f_decls, path, structure_size)
1.11 +
1.12 # Write function declarations.
1.13 # Signature: __attr <name>(__attr[]);
1.14