diff options
author | Nilay Vaish <nilay@cs.wisc.edu> | 2013-06-28 21:42:27 -0500 |
---|---|---|
committer | Nilay Vaish <nilay@cs.wisc.edu> | 2013-06-28 21:42:27 -0500 |
commit | 1be0098c0bbb7c4b5dbc51657cb8b53aa6a284d1 (patch) | |
tree | 9e3e7ca8e4a352115be52a8398dcd80250774854 /src/mem | |
parent | 516b7849e8efb369ede9c711309667d48897c9c2 (diff) | |
download | gem5-1be0098c0bbb7c4b5dbc51657cb8b53aa6a284d1.tar.xz |
ruby: append transition comment only when in opt/debug
Diffstat (limited to 'src/mem')
-rw-r--r-- | src/mem/slicc/symbols/StateMachine.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mem/slicc/symbols/StateMachine.py b/src/mem/slicc/symbols/StateMachine.py index a110092b6..1eb72972f 100644 --- 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) |