diff options
Diffstat (limited to 'lapi.c')
-rw-r--r-- | lapi.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -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 | ||
141 | LUA_API const lua_Number *lua_version (lua_State *L) { | 141 | LUA_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 | ||