diff options
author | Lua Team <team@lua.org> | 2011-11-30 12:00:00 +0000 |
---|---|---|
committer | repogen <> | 2011-11-30 12:00:00 +0000 |
commit | ac1beaea25f1fec341e1edb168c63ac7131a6bdd (patch) | |
tree | 07b408b92516a459a685fdc1aca30694663051f3 /src/lapi.c | |
parent | dfa489618335f21b74e1b2040a64b28dcbe048a6 (diff) | |
download | lua-github-5.2.0-rc3.tar.gz |
Lua 5.2.0-rc35.2.0-rc3
Diffstat (limited to 'src/lapi.c')
-rw-r--r-- | src/lapi.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ /* -** $Id: lapi.c,v 2.157 2011/11/16 18:51:36 roberto Exp $ +** $Id: lapi.c,v 2.158 2011/11/29 15:55:08 roberto Exp $ ** Lua API ** See Copyright Notice in lua.h */ @@ -968,13 +968,13 @@ LUA_API int lua_pcallk (lua_State *L, int nargs, int nresults, int errfunc, LUA_API int lua_load (lua_State *L, lua_Reader reader, void *data, - const char *chunkname) { + const char *chunkname, const char *mode) { ZIO z; int status; lua_lock(L); if (!chunkname) chunkname = "?"; luaZ_init(L, &z, reader, data); - status = luaD_protectedparser(L, &z, chunkname); + status = luaD_protectedparser(L, &z, chunkname, mode); if (status == LUA_OK) { /* no errors? */ LClosure *f = clLvalue(L->top - 1); /* get newly created function */ if (f->nupvalues == 1) { /* does it have one upvalue? */ |