#include <stdio.h>
#include <stdlib.h>
Go to the source code of this file.
Defines | |
| #define | PI 3.14159265358979323846 |
| #define | Assert(Assertion, ErrorMessage) __Assert((bool)(Assertion), (char*)(ErrorMessage), __LINE__, __FILE__) |
Functions | |
| void | __Assert (bool Assertion, char *ErrorMessage=NULL, int Line=-1, const char *FileName=NULL) |
| void | itoa (char *dest, int val) |
| int | max (int a, int b) |
| Returns the value that is the largest. | |
| void | swap (int &a, int &b) |
| Inline, reference, swap function. | |
| #define Assert | ( | Assertion, | |||
| ErrorMessage | ) | __Assert((bool)(Assertion), (char*)(ErrorMessage), __LINE__, __FILE__) |
Custom Assertion Macro Prints the error message, line number, and file number of the assertion location
| #define PI 3.14159265358979323846 |
| void __Assert | ( | bool | Assertion, | |
| char * | ErrorMessage = NULL, |
|||
| int | Line = -1, |
|||
| const char * | FileName = NULL | |||
| ) |
Custom Assert Prints the given error message, given line number, and the given file name
| void itoa | ( | char * | dest, | |
| int | val | |||
| ) |
Simple itoa implementation Given a decimal integer, convert it to a string
| int max | ( | int | a, | |
| int | b | |||
| ) |
Returns the value that is the largest.
| void swap | ( | int & | a, | |
| int & | b | |||
| ) | [inline] |
Inline, reference, swap function.
1.5.5