ruby: append transition comment only when in opt/debug
This commit is contained in:
parent
516b7849e8
commit
1be0098c0b
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue