goat3dgfx

diff src/logger.cc @ 15:7d6b667821cf

wrapped everything in the goatgfx namespace
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 30 Nov 2013 20:52:21 +0200
parents 18879c956eb1
children
line diff
     1.1 --- a/src/logger.cc	Sat Nov 30 15:15:34 2013 +0200
     1.2 +++ b/src/logger.cc	Sat Nov 30 20:52:21 2013 +0200
     1.3 @@ -8,6 +8,8 @@
     1.4  #include <windows.h>
     1.5  #endif
     1.6  
     1.7 +using namespace goatgfx;
     1.8 +
     1.9  enum { LOG_INFO, LOG_WARNING, LOG_ERROR, LOG_FATAL, LOG_DEBUG };
    1.10  
    1.11  static int typecolor(int type);
    1.12 @@ -41,6 +43,8 @@
    1.13  #endif
    1.14  }
    1.15  
    1.16 +namespace goatgfx {
    1.17 +
    1.18  void info_log(const char *fmt, ...)
    1.19  {
    1.20  	va_list ap;
    1.21 @@ -86,6 +90,8 @@
    1.22  	va_end(ap);
    1.23  }
    1.24  
    1.25 +}	// namespace goatgfx
    1.26 +
    1.27  enum {
    1.28  	BLACK = 0,
    1.29  	RED,