mirror of
https://gitlab.com/Syping/luaengineapp.git
synced 2024-11-04 21:16:56 +01:00
executeProcess return 2 arguments
This commit is contained in:
parent
1ddf257a41
commit
71c86ba217
1 changed files with 7 additions and 2 deletions
|
@ -74,11 +74,16 @@ int LuaEngineOS::executeProcess(lua_State *L_p)
|
|||
if (runInBackground && !processExecuted) {
|
||||
processReturn = -2;
|
||||
}
|
||||
else if (!runInBackground && processReturn != -2) {
|
||||
processExecuted = true;
|
||||
}
|
||||
pushVariant(L_p, processExecuted);
|
||||
pushVariant(L_p, processReturn);
|
||||
return 1;
|
||||
return 2;
|
||||
}
|
||||
pushVariant(L_p, false);
|
||||
pushVariant(L_p, -2);
|
||||
return 1;
|
||||
return 2;
|
||||
}
|
||||
|
||||
QString LuaEngineOS::nameForPointer(void *pointer)
|
||||
|
|
Loading…
Reference in a new issue