diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-03-23 11:26:12 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-03-23 11:26:12 -0300 |
commit | 6d0ae11c576106b490a53215c3f227b65ace2776 (patch) | |
tree | fcb09763cf7f81036ed277e65dc5c967d77deef4 /lbaselib.c | |
parent | 3ca739b418243544ecc1098e34c71f2378bad915 (diff) | |
download | lua-6d0ae11c576106b490a53215c3f227b65ace2776.tar.gz lua-6d0ae11c576106b490a53215c3f227b65ace2776.tar.bz2 lua-6d0ae11c576106b490a53215c3f227b65ace2776.zip |
'context' added to suspendable calls
Diffstat (limited to 'lbaselib.c')
-rw-r--r-- | lbaselib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lbaselib.c,v 1.212 2009/03/13 15:50:03 roberto Exp roberto $ | 2 | ** $Id: lbaselib.c,v 1.213 2009/03/16 16:30:50 roberto Exp roberto $ |
3 | ** Basic library | 3 | ** Basic library |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -358,7 +358,7 @@ static int luaB_dofile (lua_State *L) { | |||
358 | const char *fname = luaL_optstring(L, 1, NULL); | 358 | const char *fname = luaL_optstring(L, 1, NULL); |
359 | lua_settop(L, 1); | 359 | lua_settop(L, 1); |
360 | if (luaL_loadfile(L, fname) != LUA_OK) lua_error(L); | 360 | if (luaL_loadfile(L, fname) != LUA_OK) lua_error(L); |
361 | lua_callcont(L, 0, LUA_MULTRET, dofilecont); | 361 | lua_callk(L, 0, LUA_MULTRET, 0, dofilecont); |
362 | return dofilecont(L); | 362 | return dofilecont(L); |
363 | } | 363 | } |
364 | 364 | ||