diff --git a/src/switches.c b/src/switches.c index ada0167..53316be 100644 --- a/src/switches.c +++ b/src/switches.c @@ -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 */ diff --git a/src/switches.h b/src/switches.h index ecd5764..e1e3207 100644 --- a/src/switches.h +++ b/src/switches.h @@ -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.