/* =================== Com_UngetToken Calling this will make the next Com_Parse return the current token instead of advancing the pointer =================== */ void Com_UngetToken(void) { if(pi->ungetToken) { Com_ScriptError("UngetToken called twice"); } pi->ungetToken = qtrue; }
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 ); } } }
void Com_UngetToken() { char *pi = (char *)0x744770 + 1056 * *(DWORD *)0x748970; if (pi[1028]) { Com_ScriptError("UngetToken called twice"); ASSERT(false); } pi[1028] = 1; *(DWORD *)0x748974 = *(DWORD *)0x748978; }