17 lines
346 B
C
17 lines
346 B
C
|
// ********
|
||
|
// ERRORS.H
|
||
|
// ********
|
||
|
|
||
|
#ifndef ERRORS_H
|
||
|
#define ERRORS_H
|
||
|
|
||
|
#include <stdarg.h>
|
||
|
#include <assert.h>
|
||
|
|
||
|
// this function takes a formatted character string and params like printf,
|
||
|
// prints a formatted message, and then aborts the program. Its used for
|
||
|
// trapping errors and halting execution.
|
||
|
void Error(const char *msg, ...);
|
||
|
|
||
|
#endif
|