17 lines
346 B
C
Executable File
17 lines
346 B
C
Executable File
// ********
|
|
// 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
|