Inform - Support - Patches

About Patches  


DM4 Errata  

Issue C62118

Nested Includes can crash compiler
Submitted by: Jim Fisher     Appeared in: Compiler 6.21 or before     Fixed in: -

Essentially, the compiler crashes when Includes are nested to a depth greater than three. For example, "source.inf" includes "file1.h" which includes "file2.h" which, in turn, includes "file3.h." These three nested Include directives work fine. It is only when "file3.h" tries to Include another file that the compiler crashes.

Solution (by Jim W Lai)

A workaround is to increase the value of a #define in header.h called MAX_INCLUSION_DEPTH. I'm using the biplatform version of Inform, where it's set to 5. Setting it to be a larger number than is required should allow deeply nested files to compile.

Last updated 17 April 2013. This web site has not been fully supported since April 2008. Information may be out of date. This page was originally managed by Roger Firth.