EgtExecutor 1.6v4 :

- aggiunta Exe e Lua InvertVector
- aggiunte Lua EgtCreateContext e EgtDeleteContext
- aggiunta Lua EgtSplitStringPlus.
This commit is contained in:
Dario Sassi
2016-10-18 18:37:08 +00:00
parent cd1e810cf1
commit 0d6a829de7
7 changed files with 142 additions and 33 deletions
+16
View File
@@ -58,6 +58,21 @@ LuaChangeVectorBase( lua_State* L)
return 1 ;
}
//----------------------------------------------------------------------------
static int
LuaInvertVector( lua_State* L)
{
// 1 parametro : Id/s
INTVECTOR vId ;
LuaCheckParam( L, 1, vId)
LuaClearStack( L) ;
// eseguo inversione vettori
bool bOk = ExeInvertVector( vId) ;
// restituisco il risultato
LuaSetParam( L, bOk) ;
return 1 ;
}
//-------------------------------------------------------------------------------
static int
LuaModifyText( lua_State* L)
@@ -165,6 +180,7 @@ LuaInstallGdbModify( LuaMgr& luaMgr)
bool bOk = ( &luaMgr != nullptr) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtChangeGroupFrame", LuaChangeGroupFrame) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtChangeVectorBase", LuaChangeVectorBase) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtInvertVector", LuaInvertVector) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtModifyText", LuaModifyText) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtChangeTextFont", LuaChangeTextFont) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtFlipText", LuaFlipText) ;