From 1be0098c0bbb7c4b5dbc51657cb8b53aa6a284d1 Mon Sep 17 00:00:00 2001 From: Nilay Vaish Date: Fri, 28 Jun 2013 21:42:27 -0500 Subject: ruby: append transition comment only when in opt/debug --- src/mem/slicc/symbols/StateMachine.py | 5 +++++ 1 file changed, 5 insertions(+) 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 > $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) -- cgit v1.2.3