Error handling in PP

<< Click to Display Table of Contents >>

Navigation:  Reference > Pre-processor >

Error handling in PP

All PP errors are fatal - that is, when they are encountered, processing stops immediately. This is because nearly all such errors are logically unrecoverable - there can be no sensible course of action. Since pre-processing takes place prior to compilation, PP code that cannot be expanded for any reason also stops the current compilation.

When an error occurs, error monitoring appears in the Log file; no monitoring appears in the Listing.txt file.

The monitoring shows:

The exact position where the error occurred.

The exact position where any current *INSERTS were called.

The exact position where any current cell references were used.

The last few characters parsed by PP.

The exact position that PP code was entered last.

The exact position of the last PP command started if the PP code is nested.

The loop counter for any open loops.

All index names showing type and current contents.