GameKit  0.0.1a
C++ gamedev tools
Namespaces | Macros | Enumerations | Functions
Debug.hpp File Reference
#include <cstring>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include "gk/core/IntTypes.hpp"

Go to the source code of this file.

Namespaces

 gk
 
 gk::Debug
 

Macros

#define _FILE   (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : strrchr(__FILE__, '\\') ? strrchr(__FILE__, '\\') + 1 : __FILE__)
 
#define DEBUG(args...)   {}
 
#define TRACE(s)   { s }
 

Enumerations

enum  gk::Debug::TextColor { gk::Debug::White = 0, gk::Debug::Red = 31, gk::Debug::Blue = 36 }
 

Functions

std::string gk::Debug::textColor (u8 color=TextColor::White, bool bold=false)
 
template<typename... Args>
std::string gk::Debug::makeString (Args &&...args)
 
template<typename... Args>
void gk::Debug::print (Args &&...args)
 

Macro Definition Documentation

§ _FILE

#define _FILE   (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : strrchr(__FILE__, '\\') ? strrchr(__FILE__, '\\') + 1 : __FILE__)

Definition at line 25 of file Debug.hpp.

§ DEBUG

#define DEBUG (   args...)    {}

Definition at line 31 of file Debug.hpp.

§ TRACE

#define TRACE (   s)    { s }

Definition at line 32 of file Debug.hpp.