diff options
author | Brian Paul <[email protected]> | 2001-12-15 16:42:59 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2001-12-15 16:42:59 +0000 |
commit | b15a3b4d132cff44fa7881ac36313764f88e4340 (patch) | |
tree | 09f912495f563ea3f49824cf3b2f723f391f938c /src/mesa/main/dispatch.c | |
parent | d2237d48eccbd47a4e69078c25de09453730d298 (diff) |
better api trace/log messages
Diffstat (limited to 'src/mesa/main/dispatch.c')
-rw-r--r-- | src/mesa/main/dispatch.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/mesa/main/dispatch.c b/src/mesa/main/dispatch.c index 5e0f03537b3..0ed24afd30a 100644 --- a/src/mesa/main/dispatch.c +++ b/src/mesa/main/dispatch.c @@ -1,8 +1,8 @@ -/* $Id: dispatch.c,v 1.25 2001/12/04 23:43:31 brianp Exp $ */ +/* $Id: dispatch.c,v 1.26 2001/12/15 16:42:59 brianp Exp $ */ /* * Mesa 3-D graphics library - * Version: 3.5 + * Version: 4.1 * * Copyright (C) 1999-2001 Brian Paul All Rights Reserved. * @@ -66,21 +66,23 @@ #define F stdout #define DISPATCH(FUNC, ARGS, MESSAGE) \ - (_glapi_Dispatch->FUNC) ARGS; \ - fprintf MESSAGE; \ - fprintf(F, "\n"); + fprintf MESSAGE; \ + (_glapi_Dispatch->FUNC) ARGS; + +#define RETURN_DISPATCH(FUNC, ARGS, MESSAGE) \ + fprintf MESSAGE; \ + return (_glapi_Dispatch->FUNC) ARGS #else #define DISPATCH(FUNC, ARGS, MESSAGE) \ (_glapi_Dispatch->FUNC) ARGS; -#endif /* logging */ - - #define RETURN_DISPATCH(FUNC, ARGS, MESSAGE) \ return (_glapi_Dispatch->FUNC) ARGS +#endif /* logging */ + #ifndef GLAPIENTRY #define GLAPIENTRY |