Method CompilerEnvironment()->CPP()->report()


Method report

void report(SeverityLevel severity, string filename, int(0..) linenumber, string subsystem, string message, mixed ... 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

Always "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 just calls CompilerEnvironment::report() in the parent with the same arguments.

See also

Reporter()->report(), cpp_error()