projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94f9ea0
)
util/u_debug: Fix DEBUG_NAMED_VALUE.
author
José Fonseca
<jfonseca@vmware.com>
Tue, 13 Nov 2012 10:23:11 +0000
(10:23 +0000)
committer
José Fonseca
<jfonseca@vmware.com>
Thu, 15 Nov 2012 17:38:03 +0000
(17:38 +0000)
"#__symbol" doesn't work with nested macro expansions, at least not on gcc.
src/gallium/auxiliary/util/u_debug.h
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_debug.h
b/src/gallium/auxiliary/util/u_debug.h
index 14d319c2cf1db04b20f8ee99a98debaedd8acbd4..3b42c2f07f74fadc4b214cf7a766d2f2fc8ebf0d 100644
(file)
--- a/
src/gallium/auxiliary/util/u_debug.h
+++ b/
src/gallium/auxiliary/util/u_debug.h
@@
-275,7
+275,7
@@
struct debug_named_value
* ...
* @endcode
*/
-#define DEBUG_NAMED_VALUE(__symbol)
DEBUG_NAMED_VALUE_WITH_DESCRIPTION(__symbol, NULL)
+#define DEBUG_NAMED_VALUE(__symbol)
{#__symbol, (unsigned long)__symbol, NULL}
#define DEBUG_NAMED_VALUE_WITH_DESCRIPTION(__symbol, __desc) {#__symbol, (unsigned long)__symbol, __desc}
#define DEBUG_NAMED_VALUE_END {NULL, 0, NULL}