Debian Codegraph @

code/renderercommon/qgl.h

raw symbols SCIP
1 /*
2 ===========================================================================
3 Copyright (C) 1999-2005 Id Software, Inc.
4
5 This file is part of Quake III Arena source code.
6
7 Quake III Arena source code is free software; you can redistribute it
8 and/or modify it under the terms of the GNU General Public License as
9 published by the Free Software Foundation; either version 2 of the License,
10 or (at your option) any later version.
11
12 Quake III Arena source code is distributed in the hope that it will be
13 useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with Quake III Arena source code; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20 ===========================================================================
21 */
22 /*
23 ** QGL.H
24 */
25
26 #ifndef __QGL_H__
27 #define __QGL_H__
28
29 #ifdef USE_INTERNAL_SDL_HEADERS
30 # include "SDL_opengl.h"
31 #else
32 # include <SDL_opengl.h>
33 #endif
34
35 extern void (APIENTRYP qglActiveTextureARB) (GLenum texture);
36 extern void (APIENTRYP qglClientActiveTextureARB) (GLenum texture);
37 extern void (APIENTRYP qglMultiTexCoord2fARB) (GLenum target, GLfloat s, GLfloat t);
38
39 extern void (APIENTRYP qglLockArraysEXT) (GLint first, GLsizei count);
40 extern void (APIENTRYP qglUnlockArraysEXT) (void);
41
42
43 //===========================================================================
44
45 // GL function loader, based on https://gist.github.com/rygorous/16796a0c876cf8a5f542caddb55bce8a
46 // get missing functions from code/SDL2/include/SDL_opengl.h
47
48 // OpenGL 1.0/1.1, OpenGL ES 1.0, and OpenGL 3.2 core profile
49 #define QGL_1_1_PROCS \
50 GLE(void, BindTexture, GLenum target, GLuint texture) \
51 GLE(void, BlendFunc, GLenum sfactor, GLenum dfactor) \
52 GLE(void, ClearColor, GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) \
53 GLE(void, Clear, GLbitfield mask) \
54 GLE(void, ClearStencil, GLint s) \
55 GLE(void, ColorMask, GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) \
56 GLE(void, CopyTexSubImage2D, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height) \
57 GLE(void, CullFace, GLenum mode) \
58 GLE(void, DeleteTextures, GLsizei n, const GLuint *textures) \
59 GLE(void, DepthFunc, GLenum func) \
60 GLE(void, DepthMask, GLboolean flag) \
61 GLE(void, Disable, GLenum cap) \
62 GLE(void, DrawArrays, GLenum mode, GLint first, GLsizei count) \
63 GLE(void, DrawElements, GLenum mode, GLsizei count, GLenum type, const GLvoid *indices) \
64 GLE(void, Enable, GLenum cap) \
65 GLE(void, Finish, void) \
66 GLE(void, Flush, void) \
67 GLE(void, GenTextures, GLsizei n, GLuint *textures ) \
68 GLE(void, GetBooleanv, GLenum pname, GLboolean *params) \
69 GLE(GLenum, GetError, void) \
70 GLE(void, GetIntegerv, GLenum pname, GLint *params) \
71 GLE(const GLubyte *, GetString, GLenum name) \
72 GLE(void, LineWidth, GLfloat width) \
73 GLE(void, PolygonOffset, GLfloat factor, GLfloat units) \
74 GLE(void, ReadPixels, GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels) \
75 GLE(void, Scissor, GLint x, GLint y, GLsizei width, GLsizei height) \
76 GLE(void, StencilFunc, GLenum func, GLint ref, GLuint mask) \
77 GLE(void, StencilMask, GLuint mask) \
78 GLE(void, StencilOp, GLenum fail, GLenum zfail, GLenum zpass) \
79 GLE(void, TexImage2D, GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels) \
80 GLE(void, TexParameterf, GLenum target, GLenum pname, GLfloat param) \
81 GLE(void, TexParameteri, GLenum target, GLenum pname, GLint param) \
82 GLE(void, TexSubImage2D, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels) \
83 GLE(void, Viewport, GLint x, GLint y, GLsizei width, GLsizei height) \
84
85 // OpenGL 1.0/1.1 and OpenGL ES 1.x but not OpenGL 3.2 core profile
86 #define QGL_1_1_FIXED_FUNCTION_PROCS \
87 GLE(void, AlphaFunc, GLenum func, GLclampf ref) \
88 GLE(void, Color4f, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha) \
89 GLE(void, ColorPointer, GLint size, GLenum type, GLsizei stride, const GLvoid *ptr) \
90 GLE(void, DisableClientState, GLenum cap) \
91 GLE(void, EnableClientState, GLenum cap) \
92 GLE(void, LoadIdentity, void) \
93 GLE(void, LoadMatrixf, const GLfloat *m) \
94 GLE(void, MatrixMode, GLenum mode) \
95 GLE(void, PopMatrix, void) \
96 GLE(void, PushMatrix, void) \
97 GLE(void, ShadeModel, GLenum mode) \
98 GLE(void, TexCoordPointer, GLint size, GLenum type, GLsizei stride, const GLvoid *ptr) \
99 GLE(void, TexEnvf, GLenum target, GLenum pname, GLfloat param) \
100 GLE(void, Translatef, GLfloat x, GLfloat y, GLfloat z) \
101 GLE(void, VertexPointer, GLint size, GLenum type, GLsizei stride, const GLvoid *ptr) \
102
103 // OpenGL 1.0/1.1 and 3.2 core profile but not OpenGL ES 1.x
104 #define QGL_DESKTOP_1_1_PROCS \
105 GLE(void, ClearDepth, GLclampd depth) \
106 GLE(void, DepthRange, GLclampd near_val, GLclampd far_val) \
107 GLE(void, DrawBuffer, GLenum mode) \
108 GLE(void, PolygonMode, GLenum face, GLenum mode) \
109
110 // OpenGL 1.0/1.1 but not OpenGL 3.2 core profile or OpenGL ES 1.x
111 #define QGL_DESKTOP_1_1_FIXED_FUNCTION_PROCS \
112 GLE(void, ArrayElement, GLint i) \
113 GLE(void, Begin, GLenum mode) \
114 GLE(void, ClipPlane, GLenum plane, const GLdouble *equation) \
115 GLE(void, Color3f, GLfloat red, GLfloat green, GLfloat blue) \
116 GLE(void, Color4ubv, const GLubyte *v) \
117 GLE(void, End, void) \
118 GLE(void, Frustum, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble near_val, GLdouble far_val) \
119 GLE(void, Ortho, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble near_val, GLdouble far_val) \
120 GLE(void, TexCoord2f, GLfloat s, GLfloat t) \
121 GLE(void, TexCoord2fv, const GLfloat *v) \
122 GLE(void, Vertex2f, GLfloat x, GLfloat y) \
123 GLE(void, Vertex3f, GLfloat x, GLfloat y, GLfloat z) \
124 GLE(void, Vertex3fv, const GLfloat *v) \
125
126 // OpenGL ES 1.1 and OpenGL ES 2.0 but not desktop OpenGL 1.x
127 #define QGL_ES_1_1_PROCS \
128 GLE(void, ClearDepthf, GLclampf depth) \
129 GLE(void, DepthRangef, GLclampf near_val, GLclampf far_val) \
130
131 // OpenGL ES 1.1 but not OpenGL ES 2.0 or desktop OpenGL 1.x
132 #define QGL_ES_1_1_FIXED_FUNCTION_PROCS \
133 GLE(void, ClipPlanef, GLenum plane, const GLfloat *equation) \
134 GLE(void, Frustumf, GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat near_val, GLfloat far_val) \
135 GLE(void, Orthof, GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat near_val, GLfloat far_val) \
136
137 // OpenGL 1.3, was GL_ARB_texture_compression
138 #define QGL_1_3_PROCS \
139 GLE(void, ActiveTexture, GLenum texture) \
140 GLE(void, CompressedTexImage2D, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data) \
141 GLE(void, CompressedTexSubImage2D, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data) \
142
143 // GL_ARB_occlusion_query, built-in to OpenGL 1.5 but not OpenGL ES 2.0
144 #define QGL_ARB_occlusion_query_PROCS \
145 GLE(void, GenQueries, GLsizei n, GLuint *ids) \
146 GLE(void, DeleteQueries, GLsizei n, const GLuint *ids) \
147 GLE(void, BeginQuery, GLenum target, GLuint id) \
148 GLE(void, EndQuery, GLenum target) \
149 GLE(void, GetQueryObjectiv, GLuint id, GLenum pname, GLint *params) \
150 GLE(void, GetQueryObjectuiv, GLuint id, GLenum pname, GLuint *params) \
151
152 // OpenGL 1.5, was GL_ARB_vertex_buffer_object
153 #define QGL_1_5_PROCS \
154 GLE(void, BindBuffer, GLenum target, GLuint buffer) \
155 GLE(void, DeleteBuffers, GLsizei n, const GLuint *buffers) \
156 GLE(void, GenBuffers, GLsizei n, GLuint *buffers) \
157 GLE(void, BufferData, GLenum target, GLsizeiptr size, const void *data, GLenum usage) \
158 GLE(void, BufferSubData, GLenum target, GLintptr offset, GLsizeiptr size, const void *data) \
159
160 // OpenGL 2.0, was GL_ARB_shading_language_100, GL_ARB_vertex_program, GL_ARB_shader_objects, and GL_ARB_vertex_shader
161 #define QGL_2_0_PROCS \
162 GLE(void, AttachShader, GLuint program, GLuint shader) \
163 GLE(void, BindAttribLocation, GLuint program, GLuint index, const GLchar *name) \
164 GLE(void, CompileShader, GLuint shader) \
165 GLE(GLuint, CreateProgram, void) \
166 GLE(GLuint, CreateShader, GLenum type) \
167 GLE(void, DeleteProgram, GLuint program) \
168 GLE(void, DeleteShader, GLuint shader) \
169 GLE(void, DetachShader, GLuint program, GLuint shader) \
170 GLE(void, DisableVertexAttribArray, GLuint index) \
171 GLE(void, EnableVertexAttribArray, GLuint index) \
172 GLE(void, GetActiveUniform, GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name) \
173 GLE(void, GetProgramiv, GLuint program, GLenum pname, GLint *params) \
174 GLE(void, GetProgramInfoLog, GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog) \
175 GLE(void, GetShaderiv, GLuint shader, GLenum pname, GLint *params) \
176 GLE(void, GetShaderInfoLog, GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog) \
177 GLE(void, GetShaderSource, GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source) \
178 GLE(GLint, GetUniformLocation, GLuint program, const GLchar *name) \
179 GLE(void, LinkProgram, GLuint program) \
180 GLE(void, ShaderSource, GLuint shader, GLsizei count, const GLchar* *string, const GLint *length) \
181 GLE(void, UseProgram, GLuint program) \
182 GLE(void, Uniform1f, GLint location, GLfloat v0) \
183 GLE(void, Uniform2f, GLint location, GLfloat v0, GLfloat v1) \
184 GLE(void, Uniform3f, GLint location, GLfloat v0, GLfloat v1, GLfloat v2) \
185 GLE(void, Uniform4f, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3) \
186 GLE(void, Uniform1i, GLint location, GLint v0) \
187 GLE(void, Uniform1fv, GLint location, GLsizei count, const GLfloat *value) \
188 GLE(void, UniformMatrix4fv, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value) \
189 GLE(void, ValidateProgram, GLuint program) \
190 GLE(void, VertexAttribPointer, GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *pointer) \
191
192 // GL_NVX_gpu_memory_info
193 #ifndef GL_NVX_gpu_memory_info
194 #define GL_NVX_gpu_memory_info
195 #define GL_GPU_MEMORY_INFO_DEDICATED_VIDMEM_NVX 0x9047
196 #define GL_GPU_MEMORY_INFO_TOTAL_AVAILABLE_MEMORY_NVX 0x9048
197 #define GL_GPU_MEMORY_INFO_CURRENT_AVAILABLE_VIDMEM_NVX 0x9049
198 #define GL_GPU_MEMORY_INFO_EVICTION_COUNT_NVX 0x904A
199 #define GL_GPU_MEMORY_INFO_EVICTED_MEMORY_NVX 0x904B
200 #endif
201
202 // GL_ATI_meminfo
203 #ifndef GL_ATI_meminfo
204 #define GL_ATI_meminfo
205 #define GL_VBO_FREE_MEMORY_ATI 0x87FB
206 #define GL_TEXTURE_FREE_MEMORY_ATI 0x87FC
207 #define GL_RENDERBUFFER_FREE_MEMORY_ATI 0x87FD
208 #endif
209
210 // GL_ARB_texture_float
211 #ifndef GL_ARB_texture_float
212 #define GL_ARB_texture_float
213 #define GL_TEXTURE_RED_TYPE_ARB 0x8C10
214 #define GL_TEXTURE_GREEN_TYPE_ARB 0x8C11
215 #define GL_TEXTURE_BLUE_TYPE_ARB 0x8C12
216 #define GL_TEXTURE_ALPHA_TYPE_ARB 0x8C13
217 #define GL_TEXTURE_LUMINANCE_TYPE_ARB 0x8C14
218 #define GL_TEXTURE_INTENSITY_TYPE_ARB 0x8C15
219 #define GL_TEXTURE_DEPTH_TYPE_ARB 0x8C16
220 #define GL_UNSIGNED_NORMALIZED_ARB 0x8C17
221 #define GL_RGBA32F_ARB 0x8814
222 #define GL_RGB32F_ARB 0x8815
223 #define GL_ALPHA32F_ARB 0x8816
224 #define GL_INTENSITY32F_ARB 0x8817
225 #define GL_LUMINANCE32F_ARB 0x8818
226 #define GL_LUMINANCE_ALPHA32F_ARB 0x8819
227 #define GL_RGBA16F_ARB 0x881A
228 #define GL_RGB16F_ARB 0x881B
229 #define GL_ALPHA16F_ARB 0x881C
230 #define GL_INTENSITY16F_ARB 0x881D
231 #define GL_LUMINANCE16F_ARB 0x881E
232 #define GL_LUMINANCE_ALPHA16F_ARB 0x881F
233 #endif
234
235 #ifndef GL_ARB_half_float_pixel
236 #define GL_ARB_half_float_pixel
237 #define GL_HALF_FLOAT_ARB 0x140B
238 #endif
239
240 // OpenGL 3.0 specific
241 #define QGL_3_0_PROCS \
242 GLE(const GLubyte *, GetStringi, GLenum name, GLuint index) \
243
244 // GL_ARB_framebuffer_object, built-in to OpenGL 3.0
245 #define QGL_ARB_framebuffer_object_PROCS \
246 GLE(void, BindRenderbuffer, GLenum target, GLuint renderbuffer) \
247 GLE(void, DeleteRenderbuffers, GLsizei n, const GLuint *renderbuffers) \
248 GLE(void, GenRenderbuffers, GLsizei n, GLuint *renderbuffers) \
249 GLE(void, RenderbufferStorage, GLenum target, GLenum internalformat, GLsizei width, GLsizei height) \
250 GLE(void, BindFramebuffer, GLenum target, GLuint framebuffer) \
251 GLE(void, DeleteFramebuffers, GLsizei n, const GLuint *framebuffers) \
252 GLE(void, GenFramebuffers, GLsizei n, GLuint *framebuffers) \
253 GLE(GLenum, CheckFramebufferStatus, GLenum target) \
254 GLE(void, FramebufferTexture2D, GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level) \
255 GLE(void, FramebufferRenderbuffer, GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer) \
256 GLE(void, GenerateMipmap, GLenum target) \
257 GLE(void, BlitFramebuffer, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter) \
258 GLE(void, RenderbufferStorageMultisample, GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height) \
259
260 // GL_ARB_vertex_array_object, built-in to OpenGL 3.0
261 #define QGL_ARB_vertex_array_object_PROCS \
262 GLE(void, BindVertexArray, GLuint array) \
263 GLE(void, DeleteVertexArrays, GLsizei n, const GLuint *arrays) \
264 GLE(void, GenVertexArrays, GLsizei n, GLuint *arrays) \
265
266 #ifndef GL_ARB_texture_compression_rgtc
267 #define GL_ARB_texture_compression_rgtc
268 #define GL_COMPRESSED_RED_RGTC1 0x8DBB
269 #define GL_COMPRESSED_SIGNED_RED_RGTC1 0x8DBC
270 #define GL_COMPRESSED_RG_RGTC2 0x8DBD
271 #define GL_COMPRESSED_SIGNED_RG_RGTC2 0x8DBE
272 #endif
273
274 #ifndef GL_ARB_texture_compression_bptc
275 #define GL_ARB_texture_compression_bptc
276 #define GL_COMPRESSED_RGBA_BPTC_UNORM_ARB 0x8E8C
277 #define GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM_ARB 0x8E8D
278 #define GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT_ARB 0x8E8E
279 #define GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_ARB 0x8E8F
280 #endif
281
282 #ifndef GL_ARB_depth_clamp
283 #define GL_ARB_depth_clamp
284 #define GL_DEPTH_CLAMP 0x864F
285 #endif
286
287 #ifndef GL_ARB_seamless_cube_map
288 #define GL_ARB_seamless_cube_map
289 #define GL_TEXTURE_CUBE_MAP_SEAMLESS 0x884F
290 #endif
291
292 // GL_EXT_direct_state_access
293 #define QGL_EXT_direct_state_access_PROCS \
294 GLE(GLvoid, BindMultiTextureEXT, GLenum texunit, GLenum target, GLuint texture) \
295 GLE(GLvoid, TextureParameterfEXT, GLuint texture, GLenum target, GLenum pname, GLfloat param) \
296 GLE(GLvoid, TextureParameteriEXT, GLuint texture, GLenum target, GLenum pname, GLint param) \
297 GLE(GLvoid, TextureImage2DEXT, GLuint texture, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels) \
298 GLE(GLvoid, TextureSubImage2DEXT, GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels) \
299 GLE(GLvoid, CopyTextureSubImage2DEXT, GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height) \
300 GLE(GLvoid, CompressedTextureImage2DEXT, GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data) \
301 GLE(GLvoid, CompressedTextureSubImage2DEXT, GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data) \
302 GLE(GLvoid, GenerateTextureMipmapEXT, GLuint texture, GLenum target) \
303 GLE(GLvoid, ProgramUniform1iEXT, GLuint program, GLint location, GLint v0) \
304 GLE(GLvoid, ProgramUniform1fEXT, GLuint program, GLint location, GLfloat v0) \
305 GLE(GLvoid, ProgramUniform2fEXT, GLuint program, GLint location, GLfloat v0, GLfloat v1) \
306 GLE(GLvoid, ProgramUniform3fEXT, GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2) \
307 GLE(GLvoid, ProgramUniform4fEXT, GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3) \
308 GLE(GLvoid, ProgramUniform1fvEXT, GLuint program, GLint location, GLsizei count, const GLfloat *value) \
309 GLE(GLvoid, ProgramUniformMatrix4fvEXT, GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value) \
310 GLE(GLvoid, NamedRenderbufferStorageEXT, GLuint renderbuffer, GLenum internalformat, GLsizei width, GLsizei height) \
311 GLE(GLvoid, NamedRenderbufferStorageMultisampleEXT, GLuint renderbuffer, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height) \
312 GLE(GLenum, CheckNamedFramebufferStatusEXT, GLuint framebuffer, GLenum target) \
313 GLE(GLvoid, NamedFramebufferTexture2DEXT, GLuint framebuffer, GLenum attachment, GLenum textarget, GLuint texture, GLint level) \
314 GLE(GLvoid, NamedFramebufferRenderbufferEXT, GLuint framebuffer, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer) \
315
316 #define GLE(ret, name, ...) typedef ret APIENTRY name##proc(__VA_ARGS__);
317 QGL_1_1_PROCS;
318 QGL_1_1_FIXED_FUNCTION_PROCS;
319 QGL_DESKTOP_1_1_PROCS;
320 QGL_DESKTOP_1_1_FIXED_FUNCTION_PROCS;
321 QGL_ES_1_1_PROCS;
322 QGL_ES_1_1_FIXED_FUNCTION_PROCS;
323 QGL_1_3_PROCS;
324 QGL_1_5_PROCS;
325 QGL_2_0_PROCS;
326 QGL_3_0_PROCS;
327 QGL_ARB_occlusion_query_PROCS;
328 QGL_ARB_framebuffer_object_PROCS;
329 QGL_ARB_vertex_array_object_PROCS;
330 QGL_EXT_direct_state_access_PROCS;
331 #undef GLE
332
333 extern int qglMajorVersion, qglMinorVersion;
334 extern int qglesMajorVersion, qglesMinorVersion;
335 #define QGL_VERSION_ATLEAST( major, minor ) ( qglMajorVersion > major || ( qglMajorVersion == major && qglMinorVersion >= minor ) )
336 #define QGLES_VERSION_ATLEAST( major, minor ) ( qglesMajorVersion > major || ( qglesMajorVersion == major && qglesMinorVersion >= minor ) )
337
338 #endif