diff options
Diffstat (limited to 'src/lj_api.c')
-rw-r--r-- | src/lj_api.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lj_api.c b/src/lj_api.c index 711c7e9d..f0f41766 100644 --- a/src/lj_api.c +++ b/src/lj_api.c | |||
@@ -112,6 +112,13 @@ LUA_API void lua_xmove(lua_State *from, lua_State *to, int n) | |||
112 | from->top = f; | 112 | from->top = f; |
113 | } | 113 | } |
114 | 114 | ||
115 | LUA_API const lua_Number *lua_version(lua_State *L) | ||
116 | { | ||
117 | static const lua_Number version = LUA_VERSION_NUM; | ||
118 | UNUSED(L); | ||
119 | return &version; | ||
120 | } | ||
121 | |||
115 | /* -- Stack manipulation -------------------------------------------------- */ | 122 | /* -- Stack manipulation -------------------------------------------------- */ |
116 | 123 | ||
117 | LUA_API int lua_gettop(lua_State *L) | 124 | LUA_API int lua_gettop(lua_State *L) |