#include <stdlib.h>
#include <string>
#include <math.h>
#include <iostream>
Go to the source code of this file.
Defines |
| #define | fatal_error(s) report_error(s,__FILE__,__LINE__) |
| #define | assert(i) (i)?((void)NULL):assert_failed(# i,__FILE__,__LINE__) |
| #define | AssertBound(t) |
Enumerations |
| enum | Axis { X = 0,
Y = 1,
Z = 2,
W = 3
} |
Functions |
| bool | FEQ (double a, double b, double eps=FEQ_EPS) |
| bool | FEQ (float a, float b, float eps=FEQ_EPS) |
| void | report_error (const char *msg, const char *file, int line) |
| void | assert_failed (const char *text, const char *file, int line) |
| void | assertf (int test, const char *msg, const char *file=__FILE__, int line=__LINE__) |
Define Documentation
Definition at line 42 of file std.h.
Definition at line 32 of file std.h.
Enumeration Type Documentation
- Enumerator:
-
Definition at line 28 of file std.h.
Function Documentation
| void assert_failed |
( |
const char * |
text, |
|
|
const char * |
file, |
|
|
int |
line |
|
) |
| [inline] |
Definition at line 54 of file std.h.
| void assertf |
( |
int |
test, |
|
|
const char * |
msg, |
|
|
const char * |
file = __FILE__, |
|
|
int |
line = __LINE__ |
|
) |
| [inline] |
Definition at line 61 of file std.h.
| bool FEQ |
( |
double |
a, |
|
|
double |
b, |
|
|
double |
eps = FEQ_EPS |
|
) |
| [inline] |
Definition at line 24 of file std.h.
| bool FEQ |
( |
float |
a, |
|
|
float |
b, |
|
|
float |
eps = FEQ_EPS |
|
) |
| [inline] |
Definition at line 25 of file std.h.
| void report_error |
( |
const char * |
msg, |
|
|
const char * |
file, |
|
|
int |
line |
|
) |
| [inline] |
Definition at line 48 of file std.h.