Skip to content

Defines

ashley edited this page Sep 4, 2026 · 1 revision

HscriptInsanity has a few compilation defines for debugging / setting purposes

insanity.verbose

Logs information / stats to the console during compilation.

image

insanity.verboseFull

Like insanity.verbose, but also logs progress from the build macros, and is more debugging oriented.
This information will also be logged if Haxe's verbose compilation flag is enabled, regardless of including these specific defines.

image

insanity.noScriptableTypes

Disables scripted classes and types.
This will not remove the Module and Environment classes, or the scriptable build macros entirely (for leniency), but warnings will be logged if they're used in code when insanity.verbose is on.

insanity.scriptableTypes

Inverse of insanity.noScriptableTypes. This define is only meant for use in source code for conditional compilation.
Since scripted classes / types are already on by default, manually setting this will have no effect.

Clone this wiki locally