From 5a228bb1d8585022dbcd569259c6a9efcd0ddd3c Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 25 Nov 2002 15:50:14 -0200 Subject: new function `lua_version' --- lapi.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lapi.c') diff --git a/lapi.c b/lapi.c index a769d9d8..7577ce9f 100644 --- a/lapi.c +++ b/lapi.c @@ -1,5 +1,5 @@ /* -** $Id: lapi.c,v 1.222 2002/11/21 15:16:04 roberto Exp roberto $ +** $Id: lapi.c,v 1.223 2002/11/25 11:16:48 roberto Exp roberto $ ** Lua API ** See Copyright Notice in lua.h */ @@ -733,6 +733,11 @@ LUA_API void lua_setgcthreshold (lua_State *L, int newthreshold) { */ +LUA_API const char *lua_version (void) { + return LUA_VERSION; +} + + LUA_API int lua_error (lua_State *L) { lua_lock(L); api_checknelems(L, 1); -- cgit v1.2.3-55-g6feb