diff options
author | Simon Howard | 2010-12-18 23:55:07 +0000 |
---|---|---|
committer | Simon Howard | 2010-12-18 23:55:07 +0000 |
commit | 463bcf013ce355398974953508d232ac88a6b2d6 (patch) | |
tree | 8f21093469f64e1d147bf22adc4acf6ad84b0310 /src/m_argv.h | |
parent | 1ef81eb5f7c336972fe56f15285f389cafdc96f5 (diff) | |
download | chocolate-doom-463bcf013ce355398974953508d232ac88a6b2d6.tar.gz chocolate-doom-463bcf013ce355398974953508d232ac88a6b2d6.tar.bz2 chocolate-doom-463bcf013ce355398974953508d232ac88a6b2d6.zip |
Add a M_CheckParmWithArgs function, that behaves like M_CheckParm but
also checks that extra options were provided on the command line (thanks
Sander van Dijk).
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2223
Diffstat (limited to 'src/m_argv.h')
-rw-r--r-- | src/m_argv.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/m_argv.h b/src/m_argv.h index 315bb97b..f5b26f94 100644 --- a/src/m_argv.h +++ b/src/m_argv.h @@ -38,6 +38,10 @@ extern char** myargv; // in the arg list (0 if not found). int M_CheckParm (char* check); +// Same as M_CheckParm, but checks that num_args arguments are available +// following the specified argument. +int M_CheckParmWithArgs(char *check, int num_args); + void M_FindResponseFile(void); #endif |