ruby: append transition comment only when in opt/debug

This commit is contained in:
Nilay Vaish 2013-06-28 21:42:27 -05:00
parent 516b7849e8
commit 1be0098c0b

View file

@ -453,7 +453,12 @@ std::vector<std::vector<Stats::Vector *> > $c_ident::transVec;
// for adding information to the protocol debug trace // for adding information to the protocol debug trace
stringstream ${ident}_transitionComment; stringstream ${ident}_transitionComment;
#ifndef NDEBUG
#define APPEND_TRANSITION_COMMENT(str) (${ident}_transitionComment << str) #define APPEND_TRANSITION_COMMENT(str) (${ident}_transitionComment << str)
#else
#define APPEND_TRANSITION_COMMENT(str) do {} while (0)
#endif
/** \\brief constructor */ /** \\brief constructor */
$c_ident::$c_ident(const Params *p) $c_ident::$c_ident(const Params *p)