Method HandlerCompilerEnvironment()->CPP()->report()


Method report

void report(SeverityLevel severity, string filename, int(0..) linenumber, string subsystem, sprintf_format message, sprintf_args ... extra_args)

Description

Report a diagnostic from the preprocessor.

Parameter severity

The severity of the diagnostic.

Parameter filename
Parameter linenumber

Location which triggered the diagnostic. linenumber 0 (zero) indicates that it is not applicable (typically originating from command line arguments or similar).

Parameter subsystem

Typically "cpp".

Parameter message

String with the diagnostic message, with optional sprintf()-style formatting (if any extra_args).

Parameter extra_args

Extra arguments to sprintf().

The default implementation does the following:

Note

In Pike 8.0 and earlier MasterObject()->report() was not called.

See also

Reporter()->report()