function list macro

svn path=/trunk/; revision=7966
This commit is contained in:
Royce Mitchell III 2004-02-01 17:18:48 +00:00
parent 809430ad58
commit 04aba507f3
2 changed files with 27 additions and 2 deletions

View file

@ -1,4 +1,4 @@
/* $Id: opengl32.c,v 1.2 2004/02/01 17:07:16 royce Exp $
/* $Id: opengl32.c,v 1.3 2004/02/01 17:18:47 royce Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@ -16,6 +16,13 @@
#define EXPORT __declspec(dllexport)
const char* OPENGL32_funcnames[GLIDX_COUNT] =
{
#define X(X) #X,
GLFUNCS_MACRO
#undef X
};
static void OPENGL32_ThreadDetach()
{
/* FIXME - do we need to release some HDC or something? */

View file

@ -1,4 +1,4 @@
/* $Id: opengl32.h,v 1.2 2004/02/01 17:07:16 royce Exp $
/* $Id: opengl32.h,v 1.3 2004/02/01 17:18:48 royce Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@ -12,6 +12,24 @@
#ifndef OPENGL32_PRIVATE_H
#define OPENGL32_PRIVATE_H
#define GLFUNCS_MACRO \
X(glAccum) \
X(glAddSwapHintRectWIN) \
X(glArrayElement) \
X(glBegin) \
X(glBindTexture)
enum glfunc_indices
{
GLIDX_INVALID = -1,
#define X(X) GLIDX_##X,
GLFUNCS_MACRO
#undef X
GLIDX_COUNT
};
extern const char* OPENGL32_funcnames[GLIDX_COUNT];
typedef
void
WINAPI