GameKit
0.0.1a
C++ gamedev tools
include
gk
gl
GLCheck.hpp
Go to the documentation of this file.
1
/*
2
* =====================================================================================
3
*
4
* Filename: GLCheck.hpp
5
*
6
* Description:
7
*
8
* Created: 27/02/2019 01:40:51
9
*
10
* Author: SFML
11
*
12
* =====================================================================================
13
*/
14
#ifndef GK_GLCHECK_HPP_
15
#define GK_GLCHECK_HPP_
16
17
// #ifdef DEBUG_ENABLED
18
#define glCheck(expr) do { expr; gk::priv::glCheckError(__FILE__, __LINE__, #expr); } while (false)
19
// #else
20
// #define glCheck(expr) (expr)
21
// #endif
22
23
namespace
gk
{
24
namespace
priv {
25
void
glCheckError
(
const
char
* file,
unsigned
int
line,
const
char
* expression);
26
}
27
}
28
29
#endif // GK_GLCHECK_HPP_
gk
Definition:
AudioPlayer.hpp:21
gk::priv::glCheckError
void glCheckError(const char *file, unsigned int line, const char *expression)
Definition:
GLCheck.cpp:22
Generated by
1.8.12