From: bones_was_here Date: Mon, 25 Sep 2023 08:09:39 +0000 (+1000) Subject: cmd: inline Arg helper funcs X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ea7ad935aa214b3a52eb7079110e992fbfe750ee;p=xonotic%2Fdarkplaces.git cmd: inline Arg helper funcs Signed-off-by: bones_was_here --- diff --git a/cmd.c b/cmd.c index 98e4ca35..6230fa02 100644 --- a/cmd.c +++ b/cmd.c @@ -1706,7 +1706,7 @@ void Cmd_Shutdown(void) Cmd_Argc ============ */ -int Cmd_Argc (cmd_state_t *cmd) +inline int Cmd_Argc (cmd_state_t *cmd) { return cmd->argc; } @@ -1716,7 +1716,7 @@ int Cmd_Argc (cmd_state_t *cmd) Cmd_Argv ============ */ -const char *Cmd_Argv(cmd_state_t *cmd, int arg) +inline const char *Cmd_Argv(cmd_state_t *cmd, int arg) { if (arg >= cmd->argc ) return cmd->null_string; @@ -1728,7 +1728,7 @@ const char *Cmd_Argv(cmd_state_t *cmd, int arg) Cmd_Args ============ */ -const char *Cmd_Args (cmd_state_t *cmd) +inline const char *Cmd_Args (cmd_state_t *cmd) { return cmd->args; }