Method MasterObject()->set_inhibit_compile_errors()

class MasterObject

Method set_inhibit_compile_errors

void set_inhibit_compile_errors(bool|CompilationHandler|function(string, int, string:void) behavior)

Description

Set the compile error, warning and exception behavior.

Parameter behavior

The desired behavior. One of:

int(0)

Output compilation errors and warnings to stderr. This is the default behavior.

int(1)

Inhibit output of compilator diagnostics.

function(string, int, string:void)

Function to call for compilation errors. Compilation warnings and exceptions are inhibited.

The function will be called with the same arguments as those passed to compile_error().

CompilationHandler

Compilation handler to use for diagnostics.

Note

Note that the behavior is thread local, and is not copied to new threads when they are created.

See also

get_inhibit_compile_errors()