From dc91d83bd28d51c1c3fd7b89afc3898958ae818a Mon Sep 17 00:00:00 2001 From: marha Date: Thu, 23 Dec 2010 15:37:12 +0000 Subject: Print trace message for unimplemented functions in debug --- xorg-server/glx/glapi.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/xorg-server/glx/glapi.c b/xorg-server/glx/glapi.c index 17b7feed8..5bb2e90a0 100644 --- a/xorg-server/glx/glapi.c +++ b/xorg-server/glx/glapi.c @@ -126,9 +126,15 @@ warn(void) #define F NULL -#define DISPATCH(func, args, msg) +#ifdef _DEBUG +#define DISPATCH(func, args, msg) ErrorF msg + +#define RETURN_DISPATCH(func, args, msg) ErrorF msg ; return 0 +#else +#define DISPATCH(func, args, msg) #define RETURN_DISPATCH(func, args, msg) return 0 +#endif #define DISPATCH_TABLE_NAME __glapi_noop_table #define UNUSED_TABLE_NAME __unused_noop_functions @@ -137,6 +143,9 @@ warn(void) static GLint NoOpUnused(void) { + #ifdef _DEBUG + ErrorF("NoOpUnused\n"); + #endif return 0; } -- cgit v1.2.3