1.1 --- a/generator.py Thu Nov 24 22:43:29 2016 +0100
1.2 +++ b/generator.py Thu Nov 24 23:42:19 2016 +0100
1.3 @@ -52,6 +52,7 @@
1.4 "A code generator."
1.5
1.6 function_type = "__builtins__.core.function"
1.7 + type_error_type = "__builtins__.core.TypeError"
1.8
1.9 # NOTE: These must be synchronised with the library.
1.10
1.11 @@ -348,10 +349,12 @@
1.12
1.13 #define __FUNCTION_TYPE %s
1.14 #define __FUNCTION_INSTANCE_SIZE %s
1.15 +#define __TYPE_ERROR_INSTANTIATOR %s
1.16
1.17 #endif /* __PROGTYPES_H__ */""" % (
1.18 encode_path(self.function_type),
1.19 - encode_size("<instance>", self.function_type)
1.20 + encode_size("<instance>", self.function_type),
1.21 + encode_instantiator_pointer(self.type_error_type)
1.22 )
1.23
1.24 print >>f_signatures, """\