summaryrefslogtreecommitdiff
path: root/src/mesa/glapi/glapi.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2000-01-08 11:01:24 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2000-01-08 11:01:24 +0000
commitb3674092f20e83081f8a855da67aa3448f24c03e (patch)
treede43ae11c54e69e937cfb0073fd9f0c465e8f360 /src/mesa/glapi/glapi.c
parente8dad9dbe4f83f1cd446f1eece8de67d7ccbcc2c (diff)
removed DISPATCH_SETUP, added RETURN_DISPATCH
Diffstat (limited to 'src/mesa/glapi/glapi.c')
-rw-r--r--src/mesa/glapi/glapi.c19
1 files changed, 14 insertions, 5 deletions
diff --git a/src/mesa/glapi/glapi.c b/src/mesa/glapi/glapi.c
index 56b6ab6232..d9b4dca616 100644
--- a/src/mesa/glapi/glapi.c
+++ b/src/mesa/glapi/glapi.c
@@ -1,4 +1,4 @@
-/* $Id: glapi.c,v 1.20 2000/01/07 07:30:13 brianp Exp $ */
+/* $Id: glapi.c,v 1.21 2000/01/08 11:01:25 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -502,12 +502,20 @@ _glapi_check_table(const struct _glapi_table *table)
#define NAME(func) gl##func
#endif
-#define DISPATCH_SETUP \
+#define DISPATCH(FUNC, ARGS) \
const struct _glapi_table *dispatch; \
- dispatch = Dispatch ? Dispatch : _glapi_get_dispatch();
+ dispatch = Dispatch ? Dispatch : _glapi_get_dispatch(); \
+ (dispatch->FUNC) ARGS
+
+#define RETURN_DISPATCH(FUNC, ARGS) \
+ const struct _glapi_table *dispatch; \
+ dispatch = Dispatch ? Dispatch : _glapi_get_dispatch(); \
+ return (dispatch->FUNC) ARGS
-#define DISPATCH(FUNC, ARGS) (dispatch->FUNC) ARGS
+#ifndef GLAPIENTRY
+#define GLAPIENTRY
+#endif
#include "glapitemp.h"
@@ -517,8 +525,9 @@ _glapi_check_table(const struct _glapi_table *table)
* we should implement a dispatch function in glapitemp.h and
* in glapinoop.c
*/
-static void NotImplemented(void)
+static int NotImplemented(void)
{
+ return 0;
}