EgtGeneral :

- aggiunto controllo massimo numero chiamate annidate di RUN.
This commit is contained in:
Dario Sassi
2014-03-18 08:46:14 +00:00
parent 2acbbf7858
commit 0690c2c7de
+3
View File
@@ -420,6 +420,9 @@ CmdParser::ExecuteRun( const string& sCmd2, const STRVECTOR& vsParams)
// 1 parametro : nome file di script da eseguire
if ( vsParams.size() != 1)
return false ;
// controllo massimo numero di annidamenti
if ( m_nLev >= 5)
return false ;
// esecuzione comando
++ m_nLev ;
bool bOk = Run( vsParams[0]) ;