From 4a818f068aef5c598c7af9ed5a834dee5d9a9eb6 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 18 Jun 2009 15:59:58 -0300 Subject: 'checkversion' implemented in the auxiliary library --- lua.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lua.c') diff --git a/lua.c b/lua.c index 6f490969..2c456cc1 100644 --- a/lua.c +++ b/lua.c @@ -1,5 +1,5 @@ /* -** $Id: lua.c,v 1.171 2008/07/11 17:51:01 roberto Exp roberto $ +** $Id: lua.c,v 1.172 2009/02/19 17:15:35 roberto Exp roberto $ ** Lua stand-alone interpreter ** See Copyright Notice in lua.h */ @@ -343,7 +343,7 @@ static int pmain (lua_State *L) { lua_gc(L, LUA_GCSTOP, 0); /* stop collector during initialization */ luaL_openlibs(L); /* open libraries */ lua_gc(L, LUA_GCRESTART, 0); - lua_checkversion(L); + luaL_checkversion(L); s->ok = (handle_luainit(L) == LUA_OK); if (!s->ok) return 0; script = collectargs(argv, &has_i, &has_v, &has_e); -- cgit v1.2.3-55-g6feb