aboutsummaryrefslogtreecommitdiff
path: root/lapi.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-06-18 09:08:10 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-06-18 09:08:10 -0300
commitaf70905246acfad225904b64d027e5b01c7b10eb (patch)
treeb6d62db411706f5317e1269aff90e05399cd51b8 /lapi.c
parentb95e46621873cfb460e1d11dcd153914d5d69f86 (diff)
downloadlua-af70905246acfad225904b64d027e5b01c7b10eb.tar.gz
lua-af70905246acfad225904b64d027e5b01c7b10eb.tar.bz2
lua-af70905246acfad225904b64d027e5b01c7b10eb.zip
no need to check whether libraries and host use the same kernel;
Lua should work correctly with several copies of the kernel
Diffstat (limited to 'lapi.c')
-rw-r--r--lapi.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/lapi.c b/lapi.c
index 5d106076..e69215a8 100644
--- a/lapi.c
+++ b/lapi.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lapi.c,v 2.293 2018/06/15 17:30:52 roberto Exp roberto $ 2** $Id: lapi.c,v 2.294 2018/06/15 19:31:22 roberto Exp roberto $
3** Lua API 3** Lua API
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -138,10 +138,9 @@ LUA_API lua_CFunction lua_atpanic (lua_State *L, lua_CFunction panicf) {
138} 138}
139 139
140 140
141LUA_API const lua_Number *lua_version (lua_State *L) { 141LUA_API lua_Number lua_version (lua_State *L) {
142 static const lua_Number version = LUA_VERSION_NUM; 142 UNUSED(L);
143 if (L == NULL) return &version; 143 return LUA_VERSION_NUM;
144 else return G(L)->version;
145} 144}
146 145
147 146