Skip to content
mschlegel81 edited this page Oct 9, 2020 · 2 revisions

Under the hood

I make heavy use of preprocessor statements, in particular the following $ifdef.

{$ifdef debugMode}

For debugging, some additional checks are performed and (more) output is written. Some of the additional checks could (and should) be written using assertions, but I didn't take the time to refactor this.

{$ifdef fullVersion}

Since MNH can be built either as a "light" or as a "full" version, introducing this (compile time) parameter made sense. Some features are only used in the IDE (code assistance, profiling, debugging) while others are in some way related to graphical components which are absent in the light version.

Clone this wiki locally