- Added '--experimental=<int>' switch for debug version.
This commit is contained in:
parent
8d9891fee0
commit
1c075db161
@ -69,6 +69,7 @@ switchesInit (int argc, char **argv)
|
|||||||
|
|
||||||
// Misc
|
// Misc
|
||||||
switches.switchP = 0; // multi-purpose parameter
|
switches.switchP = 0; // multi-purpose parameter
|
||||||
|
switches.experimental = 0; // experimental stuff defaults to 0, whatever that means.
|
||||||
|
|
||||||
// Output
|
// Output
|
||||||
switches.output = ATTACK; // default is to show the attacks
|
switches.output = ATTACK; // default is to show the attacks
|
||||||
@ -557,6 +558,27 @@ switcher (const int process, int index)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef DEBUG
|
||||||
|
/* ==================
|
||||||
|
* Experimental options
|
||||||
|
*
|
||||||
|
* Only with debugging version
|
||||||
|
*/
|
||||||
|
|
||||||
|
if (detect (' ', "experimental", 1))
|
||||||
|
{
|
||||||
|
if (!process)
|
||||||
|
{
|
||||||
|
/* unpredictable behaviour, can change throughout versions */
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
switches.experimental = integer_argument ();
|
||||||
|
return index;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* ==================
|
/* ==================
|
||||||
* External options
|
* External options
|
||||||
*/
|
*/
|
||||||
|
@ -48,6 +48,7 @@ struct switchdata
|
|||||||
|
|
||||||
// Misc
|
// Misc
|
||||||
int switchP; //!< A multi-purpose integer parameter, passed to the partial order reduction method selected.
|
int switchP; //!< A multi-purpose integer parameter, passed to the partial order reduction method selected.
|
||||||
|
int experimental; //!< Experimental stuff goes here until it moves into main stuff.
|
||||||
|
|
||||||
// Output
|
// Output
|
||||||
int output; //!< From enum outputs: what should be produced. Default ATTACK.
|
int output; //!< From enum outputs: what should be produced. Default ATTACK.
|
||||||
|
Loading…
Reference in New Issue
Block a user