Mathematic Expressions Library
0.1
The core math data structures and manipulators
errors.h
Go to the documentation of this file.
1
/*
2
* errors.h
3
*
4
* Created on: Apr 7, 2014
5
* Author: Craig Hesling
6
*/
7
8
#ifndef ERRORS_H_
9
#define ERRORS_H_
10
11
#include <assert.h>
/* assert() */
12
13
#ifdef DEBUG
14
// Make sure assert is enabled
15
#ifdef NDEBUG
16
#undef NDEBUG
17
#endif
18
19
#else
20
// disable assert
21
#ifdef NDEBUG
22
#define NDEBUG
23
#endif
24
#endif
25
26
27
/*
28
* Runtime Error
29
*/
30
void
31
rerror
(
char
const
*fmt,
32
...);
33
34
/*
35
* Program Fault Error
36
*/
37
void
38
pferror
(
const
char
*function_name,
39
char
const
*fmt,
40
...);
41
42
#endif
/* ERRORS_H_ */
rerror
void rerror(char const *fmt,...)
Definition:
errors.c:19
pferror
void pferror(const char *function_name, char const *fmt,...)
Definition:
errors.c:33
errors.h
Generated on Mon Oct 15 2018 19:29:02 for Mathematic Expressions Library by
1.8.13