give qc access to Cmd_Return

This commit is contained in:
Bill Currie 2002-04-14 01:25:24 +00:00
parent 503dab1aee
commit 403af77038
2 changed files with 8 additions and 0 deletions

View file

@ -3,3 +3,4 @@ integer () Cmd_Argc = #0;
string (integer arg) Cmd_Argv = #0;
string (integer arg) Cmd_Args = #0;
string (integer arg) Cmd_Argu = #0;
void (string value) Cmd_Return = #0;

View file

@ -148,6 +148,12 @@ bi_Cmd_Argu (progs_t *pr)
RETURN_STRING (pr, Cmd_Argu (G_INT (pr, OFS_PARM0)));
}
static void
bi_Cmd_Return (progs_t *pr)
{
Cmd_Return (G_STRING (pr, OFS_PARM0));
}
//Cmd_CheckParm
//Cmd_TokenizeString
//Cmd_ExecuteString
@ -168,4 +174,5 @@ Cmd_Progs_Init (progs_t *pr)
PR_AddBuiltin (pr, "Cmd_Argv", bi_Cmd_Argv, -1);
PR_AddBuiltin (pr, "Cmd_Args", bi_Cmd_Args, -1);
PR_AddBuiltin (pr, "Cmd_Argu", bi_Cmd_Argu, -1);
PR_AddBuiltin (pr, "Cmd_Return", bi_Cmd_Return, -1);
}