Method HandlerCompilerEnvironment()->CPP()->report()
- Method
report
voidreport(SeverityLevelseverity,stringfilename,int(0..)linenumber,stringsubsystem,sprintf_formatmessage,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.
linenumber0(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:
If there's a handler which implements Reporter()->report(), call it with the same arguments.
Otherwise if there's a handler which implements
compile_warning()orcompile_error()that matchesseverity, call it with suitable arguments.Otherwise if there's a compat handler, use it in the same manner as the handler.
Otherwise fall back to calling ::report() with the same arguments.
- Note
In Pike 8.0 and earlier MasterObject()->report() was not called.
- See also