#include <iostream>
#include "stdlib.h"
|
typedef unsigned int | uint |
|
#define ASSERT |
( |
|
exp | ) |
if(!(exp)){std::cerr<<"[ERROR] "<<WHERE<<"\t\tAssertion Failed."<<END_LINE;exit(1);} |
#define ASSERT2 |
( |
|
exp, |
|
|
|
msg |
|
) |
| if(!(exp)){std::cerr<<"[ERROR] "<<WHERE<<"\t\tAssertion Failed." <<msg<< "\n";exit(1);} |
#define CHECK_SDL_ERROR std::cerr<<"[ERROR] "<<WHERE<<"\t\t"<<SDL_GetError()<<END_LINE |
#define CONVERSAO_GRAUS_RADIANOS 57.324840764 |
#define ELEMENT_ACESS |
( |
|
container, |
|
|
|
position |
|
) |
| container[position] |
#define Error |
( |
|
msg | ) |
std::cerr<<"[ERROR] "<<WHERE<<"\t\t"<<msg<<END_LINE;exit(1); |
#define REPORT_DEBUG |
( |
|
msg | ) |
if(DEBUG){std::cout<<"[DEBUG]"<<WHERE<<msg<<END_LINE;} |
#define REPORT_DEBUG2 |
( |
|
cond, |
|
|
|
msg |
|
) |
| if(cond||DEBUG){std::cout<<"[DEBUG]"<<WHERE<<msg<<END_LINE;} |
#define REPORT_I_WAS_HERE if(DEBUG){std::cout <<"[DEBUG] I was here!\t"<<WHERE<<END_LINE;} |
#define SDL_ASSERT |
( |
|
exp | ) |
if(!(exp)){std::cerr<<"[ERROR] "<<WHERE<<"\t\tAssertion Failed:" << SDL_GetError()<<END_LINE;exit(1);} |
#define TEMP_REPORT_I_WAS_HERE if(1){std::cout<<"[DEBUG] I was here!\t"<<WHERE<<END_LINE;} |
#define WHERE __FILE__<<" | "<<__func__<<":"<<__LINE__ |
typedef unsigned int uint |