EgtExecutor :

- aggiunte a Lua EgtGetLastPart, EgtGetPrevPart, EgtGetLastLayer e EgtGetPrevLayer
- aggiunto parametro opzionale (separatore) a EgtSplitString di Lua
- corrette (parametro di ritorno di tipo errato) EgtPackBox e EgtPackBoxCluster di Lua.
This commit is contained in:
Dario Sassi
2016-06-06 06:34:18 +00:00
parent 8624dab22c
commit 93feb71bec
3 changed files with 91 additions and 6 deletions
+5 -2
View File
@@ -147,14 +147,17 @@ LuaNumToString( lua_State* L)
static int
LuaSplitString( lua_State* L)
{
// 1 parametro : sVal
// 1 o 2 parametri : sVal [, sSep]
string sVal ;
string sSep = "," ;
bool bFound = LuaGetParam( L, 1, sVal) ;
if ( bFound)
LuaGetParam( L, 2, sSep) ;
LuaClearStack( L) ;
// se ricevuta stringa, la divido in parti separate da ','
if ( bFound) {
STRVECTOR vsVal ;
FromString( sVal, vsVal) ;
Tokenize( sVal, sSep, vsVal) ;
// ritorno il risultato
LuaSetParam( L, vsVal) ;
}