From 463bcf013ce355398974953508d232ac88a6b2d6 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sat, 18 Dec 2010 23:55:07 +0000 Subject: 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 --- src/m_argv.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/m_argv.h') 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 -- cgit v1.2.3