Extracted from Pike v7.8 release 866 at 2016-11-06.
pike.ida.liu.se
[Top]
CompilerEnvironment

Method CompilerEnvironment()->report()


Method report

void report(SeverityLevel severity, string filename, int linenumber, string subsystem, string message, mixed ... extra_args)

Description

Report a diagnostic from the compiler.

Parameter severity

The severity of the diagnostic.

The default implementation does the following depending on severity :

NOTICE

Ignored.

WARNING

Calls MasterObject()->compile_warning() .

ERROR

Calls MasterObject()->compile_error() .

FATAL

If there's no master object yet, the diagnostic is output to Stdio.stderr .

Parameter filename
Parameter linenumber

Location which triggered the diagnostic.

Parameter subsystem

Compiler subsystem that generated the diagnostic.

Parameter message

sprintf() -style formatting string with the diagnostic message.

Parameter extra_args

Extra arguments to sprintf() .

See also

PikeCompiler()->report()