diff options
Diffstat (limited to 'lapi.c')
-rw-r--r-- | lapi.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lapi.c,v 1.222 2002/11/21 15:16:04 roberto Exp roberto $ | 2 | ** $Id: lapi.c,v 1.223 2002/11/25 11:16:48 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 | */ |
@@ -733,6 +733,11 @@ LUA_API void lua_setgcthreshold (lua_State *L, int newthreshold) { | |||
733 | */ | 733 | */ |
734 | 734 | ||
735 | 735 | ||
736 | LUA_API const char *lua_version (void) { | ||
737 | return LUA_VERSION; | ||
738 | } | ||
739 | |||
740 | |||
736 | LUA_API int lua_error (lua_State *L) { | 741 | LUA_API int lua_error (lua_State *L) { |
737 | lua_lock(L); | 742 | lua_lock(L); |
738 | api_checknelems(L, 1); | 743 | api_checknelems(L, 1); |