PIPS
|
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
Go to the source code of this file.
Functions | |
void | contrainte_error (char *name, char *fmt,...) |
package contrainte More... | |
void contrainte_error | ( | char * | name, |
char * | fmt, | ||
... | |||
) |
package contrainte
error.c
INTLIBRARY void contrainte_error(va_dcl va_alist) should be called to terminate execution and to core dump when data structures are corrupted or when an undefined operation is requested (zero divide for instance). CONTRAINTE_ERROR should be called as:
CONTRAINTE_ERROR(function_name, format, expression-list)
where function_name is a string containing the name of the function calling CONTRAINTE_ERROR, and where format and expression-list are passed as arguments to vprintf. CONTRAINTE_ERROR terminates execution with abort. ARARGS0
print name of function causing error
print out remainder of message
create a core file for debug
name | ame |
fmt | mt |
Definition at line 49 of file error.c.
References abort, and fprintf().
Referenced by contrainte_sprint_format(), and contrainte_text_format().