Adapted Escape the Dawn engine.
This commit is contained in:
+4
-5
@@ -1,10 +1,9 @@
|
||||
#ifndef glerror_h__
|
||||
#define glerror_h__
|
||||
#ifndef GLError_h__
|
||||
#define GLError_h__
|
||||
|
||||
#include "PrecompiledHeader.h"
|
||||
#include <iostream>
|
||||
|
||||
#include "logging.h"
|
||||
|
||||
inline bool _GLERROR(char* info, char* file, char* func, unsigned int line)
|
||||
{
|
||||
GLenum error = glGetError();
|
||||
@@ -19,4 +18,4 @@ inline bool _GLERROR(char* info, char* file, char* func, unsigned int line)
|
||||
#define GLERROR(function) \
|
||||
_GLERROR(function, __BASE_FILE__, __func__, __LINE__)
|
||||
|
||||
#endif // glerror_h__
|
||||
#endif // GLError_h__
|
||||
+3
-3
@@ -1,5 +1,5 @@
|
||||
#ifndef logging_h__
|
||||
#define logging_h__
|
||||
#ifndef Logging_h__
|
||||
#define Logging_h__
|
||||
|
||||
#ifdef _WIN32
|
||||
// http://stackoverflow.com/a/2282433
|
||||
@@ -80,4 +80,4 @@ static void _LOG(_LOG_LEVEL logLevel, char* file, char* func, unsigned int line,
|
||||
#define LOG_DEBUG(format, ...) \
|
||||
LOG(LOG_LEVEL_DEBUG, format, ##__VA_ARGS__)
|
||||
|
||||
#endif // logging_h__
|
||||
#endif // Logging_h__
|
||||
Reference in New Issue
Block a user