text: #ifndef __GLOBALS_H__
  #define __GLOBALS_H__
  
  #include "MemLeaks.h"
  #include "SDL/include/SDL_rect.h"
  
  #define LOG(format, ...) log(__FILE__, __LINE__, format, __VA_ARGS__);
  
  void log(const char file[], int line, const char* format, ...);
  
  #define MIN( a, b ) ( ((a) < (b)) ? (a) : (b) )
  #define MAX( a, b ) ( ((a) > (b)) ? (a) : (b) )
  
  enum update_status
  {
  	UPDATE_CONTINUE = 1,
  	UPDATE_STOP,
  	UPDATE_ERROR
  };
  
  
  enum GameEvent { DESTROY_PARTICLE };
  
  enum class Character { Leonardo, MichaelAngello, Donatello, Rafael };
  
  
  // Useful typedefs ---------
  typedef unsigned int uint;
  
  // Deletes a buffer
  #define RELEASE( x ) \
      {									  \
         if( x != nullptr )   \
         {						      \
           delete x;                  \
  	     x = nullptr;             \
         }                      \
      }
  
  // Deletes an array of buffers
  #define RELEASE_ARRAY( x ) \
  	{                              \
         if( x != nullptr )              \
         {                            \
             delete[] x;                \
  	       x = nullptr;                    \
  		 }                            \
                                \
  	 }
  
  // Configuration -----------
  #define SCREEN_SIZE 1
  #define SCREEN_WIDTH 800  
  #define SCREEN_HEIGHT 600
  #define FULLSCREEN false
  #define VSYNC true
  #define TITLE "Teenage Mutant Ninja Turtles II The Arcade Game"
  #define TEXTURE_SCALE  2
  
  
  #endif //__GLOBALS_H__