-/* $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
*/
+#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
*/
+
/* GL 1.0 */
KEYWORD1 void KEYWORD2 NAME(Accum)(GLenum op, GLfloat value)