Inform - Support - Patches

About Patches  

Compiler  
Library  

DM4 Errata  

Issue C62118

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

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 site is no longer supported; information may be out of date.
Maintained as a historical archive by the Interactive Fiction Technology Foundation. Copyright 1993-2018 IFTF, CC-BY-SA unless otherwise noted.
This page was originally managed by Roger Firth.