Projeto IDJ - Towers Of Madness
TowerDefenseLovecraftnianoZombicida
 Todos Classes Arquivos Funções Variáveis Definições de Tipos Enumerações Valores enumerados Definições e Macros Páginas
Definições e Macros | Definições de Tipos
Referência do Arquivo Error.h
#include <iostream>
#include "stdlib.h"
Gráfico de dependência de inclusões para Error.h:
Este grafo mostra quais arquivos estão direta ou indiretamente relacionados com este arquivo:

Definições e Macros

#define END_LINE   "\n"
 
#define DEBUG   0
 
#define CONVERSAO_GRAUS_RADIANOS   57.324840764
 
#define Error(msg)   std::cerr<<"[ERROR] "<<WHERE<<"\t\t"<<msg<<END_LINE;exit(1);
 
#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 SDL_ASSERT(exp)   if(!(exp)){std::cerr<<"[ERROR] "<<WHERE<<"\t\tAssertion Failed:" << SDL_GetError()<<END_LINE;exit(1);}
 
#define WHERE   __FILE__<<" | "<<__func__<<":"<<__LINE__
 
#define CHECK_SDL_ERROR   std::cerr<<"[ERROR] "<<WHERE<<"\t\t"<<SDL_GetError()<<END_LINE
 
#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 TEMP_REPORT_I_WAS_HERE   if(1){std::cout<<"[DEBUG] I was here!\t"<<WHERE<<END_LINE;}
 
#define ELEMENT_ACESS(container, position)   container[position]
 

Definições de Tipos

typedef unsigned int uint
 

Definições e macros

#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 DEBUG   0
#define ELEMENT_ACESS (   container,
  position 
)    container[position]
#define END_LINE   "\n"
#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__

Definições dos tipos

typedef unsigned int uint