Function PGAErrorPrintf
Defined in File system.c
Function Documentation
-
void PGAErrorPrintf(PGAContext *ctx, int level, char *fmt, ...)
Report error messages using printf-like interface.
Description
Prints out the message supplied, and optional parameters. Uses a printf-style interface. Terminates if
PGA_FATAL. The use withPGA_FATALis deprecated, use the functionPGAFatalPrintf().Note that compared to
PGAError()msgandlevelare exchanged, seems more natural. See Constants for Error Printing Flags for thelevelconstants and Miscellaneous in the user guide for more information.Example
PGAContext *ctx; int val; ... PGAErrorPrintf (ctx, PGA_WARNING, "Some Non Fatal Error: val = %d", val);
- Parameters:
ctx – context variable
level – indicate the error’s severity
fmt – the printf-style format to print
... – additional parameters depending on format string in msg
- Returns:
None