void Com_MatchToken( const char** buf_p, const char* match, bool warning ) { const char* token = Com_Parse( buf_p ); if ( String::Cmp( token, match ) ) { if ( warning ) { Com_ScriptWarning( "MatchToken: %s != %s", token, match ); } else { Com_ScriptError( "MatchToken: %s != %s", token, match ); } } }
/* ================== Com_MatchToken ================== */ void Com_MatchToken( const char *(*buf_p), const char *match, qboolean warning ) { const char *token; token = Com_Parse( buf_p ); if ( strcmp( token, match ) ) { if (warning) { Com_ScriptWarning( "MatchToken: %s != %s", token, match ); } else { Com_ScriptError( "MatchToken: %s != %s", token, match ); } } }