Blender  V3.3
glew-mx.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2014 Blender Foundation. All rights reserved. */
3 
25 #ifndef __GLEW_MX_H__
26 #define __GLEW_MX_H__
27 
28 #include <GL/glew.h>
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
34 #include "intern/symbol-binding.h"
35 
36 /* If compiling only for OpenGL 3.2 Core Profile then we should make sure
37  * no legacy API entries or symbolic constants are used.
38  */
39 #if (!defined(WITH_LEGACY_OPENGL)) || defined(WITH_GL_PROFILE_CORE) && \
40  !defined(WITH_GL_PROFILE_COMPAT) && \
41  !defined(WITH_GL_PROFILE_ES20)
42 # include "intern/gl-deprecated.h"
43 #endif
44 
45 GLenum glew_chk(GLenum error, const char *file, int line, const char *text);
46 
47 #ifndef NDEBUG
48 # define GLEW_CHK(x) glew_chk((x), __FILE__, __LINE__, # x)
49 #else
50 # define GLEW_CHK(x) glew_chk((x), NULL, 0, NULL)
51 #endif
52 
53 #ifdef __cplusplus
54 }
55 #endif
56 
57 #endif /* __GLEW_MX_H__ */
FILE * file
GLenum glew_chk(GLenum error, const char *file, int line, const char *text)
Definition: glew-mx.c:35
static void error(const char *str)
Definition: meshlaplacian.c:51