1.1 --- a/generator.py Sun Nov 27 22:47:09 2016 +0100
1.2 +++ b/generator.py Sun Nov 27 22:48:35 2016 +0100
1.3 @@ -53,6 +53,7 @@
1.4
1.5 function_type = "__builtins__.core.function"
1.6 type_error_type = "__builtins__.core.TypeError"
1.7 + memory_error_type = "__builtins__.core.MemoryError"
1.8
1.9 # NOTE: These must be synchronised with the library.
1.10
1.11 @@ -350,11 +351,13 @@
1.12 #define __FUNCTION_TYPE %s
1.13 #define __FUNCTION_INSTANCE_SIZE %s
1.14 #define __TYPE_ERROR_INSTANTIATOR %s
1.15 +#define __MEMORY_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_instantiator_pointer(self.type_error_type)
1.21 + encode_instantiator_pointer(self.type_error_type),
1.22 + encode_instantiator_pointer(self.memory_error_type)
1.23 )
1.24
1.25 print >>f_signatures, """\