projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
516b784
)
ruby: append transition comment only when in opt/debug
author
Nilay Vaish
<nilay@cs.wisc.edu>
Sat, 29 Jun 2013 02:42:27 +0000
(21:42 -0500)
committer
Nilay Vaish
<nilay@cs.wisc.edu>
Sat, 29 Jun 2013 02:42:27 +0000
(21:42 -0500)
src/mem/slicc/symbols/StateMachine.py
patch
|
blob
|
history
diff --git
a/src/mem/slicc/symbols/StateMachine.py
b/src/mem/slicc/symbols/StateMachine.py
index a110092b640fecf9dee05e58b3087d8b903f39ca..1eb72972f53f40385a0072986bf8d9e20083b3b5 100644
(file)
--- a/
src/mem/slicc/symbols/StateMachine.py
+++ b/
src/mem/slicc/symbols/StateMachine.py
@@
-453,7
+453,12
@@
std::vector<std::vector<Stats::Vector *> > $c_ident::transVec;
// for adding information to the protocol debug trace
stringstream ${ident}_transitionComment;
+
+#ifndef NDEBUG
#define APPEND_TRANSITION_COMMENT(str) (${ident}_transitionComment << str)
+#else
+#define APPEND_TRANSITION_COMMENT(str) do {} while (0)
+#endif
/** \\brief constructor */
$c_ident::$c_ident(const Params *p)