From Eternity Wiki
This page contains text copied from the ZDoom wiki
- #include filename
- Includes the content of the given filename. It is generally used to include the common definition file zcommon.acs.
- #library name
- Defines the following code as a library. If used, it should be the very first directive, above even #include "zcommon.acs".
- #import library_name
- Imports a library. This allows to use scripts, functions, and constants defined in the library. Libraries should not be #included!
- #define constant_name value
- This gives a text name to a value, allowing to make the code more readable and easier to update if a same value has to be used in several places. Constant names should only include uppercase letters, numerals, and underscores.
- #libdefine constant_name value
- This is an alternative to #define which is used in libraries. A #libdefined constant can be used by scripts that #import the library that defined it.
- This directive prevents the compiler from "compacting" or "shrinking" the bytecode where possible. In effect, this forces it to use the ACSE format instead of the ACSe format. It has no effect if compiling in ACS0 format.
- Forces the compiler to create a "valid" ACS0 stub (in addition to the ACSe or ACSE bytecode) so that some old error checkers will not report ACS errors.
- Forces the compiler not to create a valid ACS0 stub. The bytecode will be slightly smaller as a result, but some old error checkers will mistakenly report that the compiled ACS is broken.
- Define the start (#region) and end (#endregion) of a fold-able block of code. This is of use with text editors which support the ability to define code folders such as GZDoom Builder's script editor.