00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef __ERRORCODE_H_
00019 #define __ERRORCODE_H_
00020
00021
00022 #include <stdio.h>
00023 #include <stdlib.h>
00024
00025
00026 using namespace std;
00027
00028
00029 #define PI 3.14159265358979323846
00030
00033 void __Assert(bool Assertion, char *ErrorMessage = NULL, int Line = -1, const char *FileName = NULL);
00034
00037 #define Assert(Assertion, ErrorMessage) __Assert((bool)(Assertion), (char*)(ErrorMessage), __LINE__, __FILE__)
00038
00041 void itoa(char *dest, int val);
00042
00044 int max(int a, int b);
00045
00047 inline void swap(int& a, int& b)
00048 {
00049 int temp = a;
00050 a = b;
00051 b = temp;
00052 }
00053
00054
00055 #endif