From e9908f6ce4c7c0c692295ec674cb2aea82a00cea Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Thu, 6 Apr 2017 18:38:15 +0000 Subject: [PATCH] EgtMachKernel : - aggiunta variabile EMC.PHASE a script OnSpecialApplyDisposition. --- Disposition.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Disposition.cpp b/Disposition.cpp index 89dd679..c5e4314 100644 --- a/Disposition.cpp +++ b/Disposition.cpp @@ -1037,6 +1037,7 @@ Disposition::SpecialApply( bool bRecalc) static const string EMC_VAR = "EMC" ; // tabella variabili locali per calcolo static const string EVAR_TABNAME = ".TABNAME" ; // IN (string) nome della tavola macchina static const string EVAR_DISPID = ".DISPID" ; // IN (int) identificativo della disposizione + static const string EVAR_PHASE = ".PHASE" ; // IN (int) indice fase static const string EVAR_ERROR = ".ERR" ; // OUT (int) codice di errore ( 0 = ok) static const string EVAR_HEAD = ".HEAD" ; // OUT (string) nome della testa static const string EVAR_EXIT = ".EXIT" ; // OUT (int) indice dell'uscita @@ -1060,6 +1061,7 @@ Disposition::SpecialApply( bool bRecalc) bOk = bOk && pMch->LuaCreateGlobTable( EMC_VAR) ; bOk = bOk && pMch->LuaSetGlobVar( EMC_VAR + EVAR_TABNAME, m_sTabName) ; bOk = bOk && pMch->LuaSetGlobVar( EMC_VAR + EVAR_DISPID, m_nOwnerId) ; + bOk = bOk && pMch->LuaSetGlobVar( EMC_VAR + EVAR_PHASE, GetPhase()) ; // eseguo bOk = bOk && pMch->LuaCallFunction( ON_SPECIAL_APPLY, false) ; // recupero valori parametri obbligatori