MeshKit  1.0
std.h File Reference
#include <stdlib.h>
#include <string>
#include <math.h>
#include <iostream>
Include dependency graph for std.h:
This graph shows which files directly or indirectly include this file:

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

#define assert (   i)    (i)?((void)NULL):assert_failed(# i,__FILE__,__LINE__)
Examples:
example_fbgeom.cpp.

Definition at line 37 of file std.h.

#define AssertBound (   t)

Definition at line 42 of file std.h.

#define fatal_error (   s)    report_error(s,__FILE__,__LINE__)

Definition at line 32 of file std.h.


Enumeration Type Documentation

enum Axis
Enumerator:
X 
Y 
Z 
W 

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.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines