//----------------------------------------------------------------------------- // Purpose: //----------------------------------------------------------------------------- void CC_DebugHistory_AddLine( void ) { if ( engine->Cmd_Argc() < 3 ) { Warning("Incorrect parameters. Format: <category id> <line>\n"); return; } int iCategory = atoi(engine->Cmd_Argv( 1 )); const char *pszLine = engine->Cmd_Argv( 2 ); AddDebugHistoryLine( iCategory, pszLine ); }
//----------------------------------------------------------------------------- // Purpose: //----------------------------------------------------------------------------- void CC_DebugHistory_AddLine( const CCommand &args ) { if ( args.ArgC() < 3 ) { Warning("Incorrect parameters. Format: <category id> <line>\n"); return; } int iCategory = atoi(args[ 1 ]); const char *pszLine = args[ 2 ]; AddDebugHistoryLine( iCategory, pszLine ); }