Function PGAFatalPrintf
Defined in File system.c
Function Documentation
-
void PGAFatalPrintf(PGAContext *ctx, char *fmt, ...)
Report fatal error using printf-like interface.
Description
Prints out the message supplied, and optional parameters. Uses a printf-style interface. Terminates after printing the message. Use this for fatal errors instead of one of the other error-printing functions with the
PGA_FATALflag. The reason is that the compiler can perform better checking if it knows that the method never returns.Example
PGAContext *ctx; int val; ... PGAFatalPrintf (ctx, "A Fatal Error!");
- Parameters:
ctx – context variable
fmt – the printf-style format to print
... – additional parameters depending on format string in msg
- Returns:
None