From: Nilay Vaish Date: Sat, 29 Jun 2013 02:42:27 +0000 (-0500) Subject: ruby: append transition comment only when in opt/debug X-Git-Tag: stable_2013_10_14~3 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1be0098c0bbb7c4b5dbc51657cb8b53aa6a284d1;p=gem5.git ruby: append transition comment only when in opt/debug --- 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)