mirror of
https://gitlab.com/Syping/luaengineapp.git
synced 2025-12-16 00:26:23 +01:00
Update Qt to 5.15.2
This commit is contained in:
parent
ea95d7fc10
commit
ddc4ab91c4
38 changed files with 596 additions and 346 deletions
|
|
@ -277,6 +277,8 @@ static int io_popen (lua_State *L) {
|
|||
const char *filename = luaL_checkstring(L, 1);
|
||||
const char *mode = luaL_optstring(L, 2, "r");
|
||||
LStream *p = newprefile(L);
|
||||
luaL_argcheck(L, ((mode[0] == 'r' || mode[0] == 'w') && mode[1] == '\0'),
|
||||
2, "invalid mode");
|
||||
p->f = l_popen(L, filename, mode);
|
||||
p->closef = &io_pclose;
|
||||
return (p->f == NULL) ? luaL_fileresult(L, 0, filename) : 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue