diff options
Diffstat (limited to 'src')
-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) |