mirror of
https://github.com/reactos/reactos.git
synced 2024-08-19 01:48:11 +00:00
![Jérôme Gardou](/assets/img/avatar_default.png)
- Get rid of the default stub table, use NULL instead - Simplify stub code by using the appropriate macros CORE-14024
41 lines
1.5 KiB
C
41 lines
1.5 KiB
C
/*
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
* PROJECT: ReactOS kernel
|
|
* FILE: lib/opengl32/apistubs.c
|
|
* PURPOSE: OpenGL32 lib, glXXX functions
|
|
*/
|
|
|
|
#include "opengl32.h"
|
|
|
|
|
|
|
|
#ifndef __i386__
|
|
|
|
#define USE_GL_FUNC(name, proto_args, call_args, offset, stack) \
|
|
void GLAPIENTRY gl##name proto_args \
|
|
{ \
|
|
const GLDISPATCHTABLE * Dispatch = IntGetCurrentDispatchTable(); \
|
|
if (!Dispatch) \
|
|
return; \
|
|
Dispatch->name call_args ; \
|
|
}
|
|
|
|
#define USE_GL_FUNC_RET(name, ret_type, proto_args, call_args, offset, stack) \
|
|
ret_type GLAPIENTRY gl##name proto_args \
|
|
{ \
|
|
const GLDISPATCHTABLE * Dispatch = IntGetCurrentDispatchTable(); \
|
|
if (!Dispatch) \
|
|
return 0; \
|
|
return Dispatch->name call_args ; \
|
|
}
|
|
|
|
#include "glfuncs.h"
|
|
|
|
#endif //__i386__
|
|
|
|
/* Unknown debug function */
|
|
GLint GLAPIENTRY glDebugEntry(GLint unknown1, GLint unknown2)
|
|
{
|
|
return 0;
|
|
}
|