aboutsummaryrefslogtreecommitdiff
path: root/lua.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-06-18 15:59:58 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-06-18 15:59:58 -0300
commit4a818f068aef5c598c7af9ed5a834dee5d9a9eb6 (patch)
tree319b01ad36453dac48c639148ac670f007216284 /lua.c
parent1d6ebce2969d3bfe406633fd8e284ff187ce00f2 (diff)
downloadlua-4a818f068aef5c598c7af9ed5a834dee5d9a9eb6.tar.gz
lua-4a818f068aef5c598c7af9ed5a834dee5d9a9eb6.tar.bz2
lua-4a818f068aef5c598c7af9ed5a834dee5d9a9eb6.zip
'checkversion' implemented in the auxiliary library
Diffstat (limited to 'lua.c')
-rw-r--r--lua.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lua.c b/lua.c
index 6f490969..2c456cc1 100644
--- a/lua.c
+++ b/lua.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lua.c,v 1.171 2008/07/11 17:51:01 roberto Exp roberto $ 2** $Id: lua.c,v 1.172 2009/02/19 17:15:35 roberto Exp roberto $
3** Lua stand-alone interpreter 3** Lua stand-alone interpreter
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -343,7 +343,7 @@ static int pmain (lua_State *L) {
343 lua_gc(L, LUA_GCSTOP, 0); /* stop collector during initialization */ 343 lua_gc(L, LUA_GCSTOP, 0); /* stop collector during initialization */
344 luaL_openlibs(L); /* open libraries */ 344 luaL_openlibs(L); /* open libraries */
345 lua_gc(L, LUA_GCRESTART, 0); 345 lua_gc(L, LUA_GCRESTART, 0);
346 lua_checkversion(L); 346 luaL_checkversion(L);
347 s->ok = (handle_luainit(L) == LUA_OK); 347 s->ok = (handle_luainit(L) == LUA_OK);
348 if (!s->ok) return 0; 348 if (!s->ok) return 0;
349 script = collectargs(argv, &has_i, &has_v, &has_e); 349 script = collectargs(argv, &has_i, &has_v, &has_e);