From 3228421f69764c10dbbf5cd3df49f133b152515a Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 28 Jan 2000 19:01:45 +0000 Subject: [PATCH] added default template macros --- src/mesa/glapi/glapitemp.h | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/src/mesa/glapi/glapitemp.h b/src/mesa/glapi/glapitemp.h index a847e9c2dd7..1c394f04d5a 100644 --- a/src/mesa/glapi/glapitemp.h +++ b/src/mesa/glapi/glapitemp.h @@ -1,4 +1,4 @@ -/* $Id: glapitemp.h,v 1.8 2000/01/10 04:29:10 brianp Exp $ */ +/* $Id: glapitemp.h,v 1.9 2000/01/28 19:01:45 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -50,6 +50,32 @@ */ +#ifndef KEYWORD1 +#define KEYWORD1 +#endif + +#ifndef KEYWORD2 +#define KEYWORD2 +#endif + +#ifndef NAME +#define NAME(func) gl##func +#endif + +#ifndef DISPATCH +#define DISPATCH(func, args, msg) \ + const struct _glapi_table *dispatch; \ + dispatch = _glapi_Dispatch ? _glapi_Dispatch : _glapi_get_dispatch();\ + (dispatch->func) args +#endif + +#ifndef RETURN_DISPATCH +#define RETURN_DISPATCH(FUNC, ARGS, MESSAGE) \ + const struct _glapi_table *dispatch; \ + dispatch = _glapi_Dispatch ? _glapi_Dispatch : _glapi_get_dispatch();\ + return (dispatch->func) args +#endif + /* * XXX @@ -58,6 +84,7 @@ */ + /* GL 1.0 */ KEYWORD1 void KEYWORD2 NAME(Accum)(GLenum op, GLfloat value) -- 2.30.2