DarkBASIC Professional Help File

#ZPC

This allows you to set a precompiler directive.
The Ziggurat plugin ("DX11 Plugin") comes with a specialized compiler hook as of version 0.4.6.1. This allows changes to be made to the source
being compiled, as well as the compiler itself at compilation time, and is currently used for two purposes:

1. It allows injection of additional code that is used to make the Ziggurat engine aware of the current DBPro source lines for error reporting, and
2. It allows live patching of the DBP compiler itself, which is used to make it possible to exceed the limit of at most 1000 exported functions per dll,
   which is needed by the Ziggurat (DX11) plugin.

The following is a list of currently supported precompiler directives:

- #ZPC ENABLE ERROR LINE REPORTING
  This enables error line reporting for the project.
- #ZPC DISABLE ERROR LINE REPORTING
  This disables error line reporting for the project.
  The error reporting does decrease the efficiency of your program somewhat, as well as increases compilation time, so you may want to turn it off
  once you are confident that your program will run error-free and you are compiling a release version.
  You may also want to disable error line reporting when writing a program with the standard DBPro library, ie. a project that doesn't use the Ziggurat plugin.

Also take note that a Ziggurat PreCompiler directive must not have any additional statements on the same line (ie. using ':' to add more statements to one line).

Syntax

    #ZPC directive

Parameters

    directive

> Text
> One of the precompiler directives listed above. .

Returns

This function does not return a value.

See also

CORE Functions Menu
DX11 Function Categories