Method Reporter()->report()
- Method
report
voidreport(SeverityLevelseverity,stringfilename,int(0..)linenumber,stringsubsystem,stringmessage,mixed...extra_args)- Description
Report a diagnostic from the compiler.
- Parameter
severity The severity of the diagnostic.
- Parameter
filename - Parameter
linenumber Location which triggered the diagnostic.
linenumber0(zero) indicates that it is not applicable (typically originating from command line arguments or similar).- 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().
The default implementation does the following:
If there's a
MasterObject()->report(), call it with the same arguments as ourselves.Otherwise depending on
severity:NOTICEIgnored.
WARNINGERRORFATAL
If there's no master object yet, the diagnostic is UTF8-encoded and output to Stdio.stderr.
- Note
In Pike 7.8 and earlier
MasterObject()->report()was not called.In Pike 8.0 the fallback output was not UTF8-encoded.
- See also
PikeCompiler()->report()