- Added '--experimental=<int>' switch for debug version.

This commit is contained in:
ccremers 2005-10-07 13:09:07 +00:00
parent 8d9891fee0
commit 1c075db161
2 changed files with 23 additions and 0 deletions

View File

@ -69,6 +69,7 @@ switchesInit (int argc, char **argv)
// Misc
switches.switchP = 0; // multi-purpose parameter
switches.experimental = 0; // experimental stuff defaults to 0, whatever that means.
// Output
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
*/

View File

@ -48,6 +48,7 @@ struct switchdata
// Misc
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
int output; //!< From enum outputs: what should be produced. Default ATTACK.