aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-11-25 15:50:14 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-11-25 15:50:14 -0200
commit5a228bb1d8585022dbcd569259c6a9efcd0ddd3c (patch)
tree5602576fd27ab3e8637297b30f05f4e2adabcacd
parent5f698f8b6f7e5fb18e0a7386dc506b0d5b538e6b (diff)
downloadlua-5a228bb1d8585022dbcd569259c6a9efcd0ddd3c.tar.gz
lua-5a228bb1d8585022dbcd569259c6a9efcd0ddd3c.tar.bz2
lua-5a228bb1d8585022dbcd569259c6a9efcd0ddd3c.zip
new function `lua_version'
-rw-r--r--lapi.c7
-rw-r--r--lua.h4
2 files changed, 9 insertions, 2 deletions
diff --git a/lapi.c b/lapi.c
index a769d9d8..7577ce9f 100644
--- a/lapi.c
+++ b/lapi.c
@@ -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
736LUA_API const char *lua_version (void) {
737 return LUA_VERSION;
738}
739
740
736LUA_API int lua_error (lua_State *L) { 741LUA_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);
diff --git a/lua.h b/lua.h
index 4b600548..6941e8ae 100644
--- a/lua.h
+++ b/lua.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lua.h,v 1.165 2002/11/18 11:01:55 roberto Exp roberto $ 2** $Id: lua.h,v 1.166 2002/11/25 17:47:13 roberto Exp roberto $
3** Lua - An Extensible Extension Language 3** Lua - An Extensible Extension Language
4** Tecgraf: Computer Graphics Technology Group, PUC-Rio, Brazil 4** Tecgraf: Computer Graphics Technology Group, PUC-Rio, Brazil
5** http://www.lua.org mailto:info@lua.org 5** http://www.lua.org mailto:info@lua.org
@@ -215,6 +215,8 @@ LUA_API void lua_setgcthreshold (lua_State *L, int newthreshold);
215** miscellaneous functions 215** miscellaneous functions
216*/ 216*/
217 217
218LUA_API const char *lua_version (void);
219
218LUA_API int lua_error (lua_State *L); 220LUA_API int lua_error (lua_State *L);
219 221
220LUA_API int lua_next (lua_State *L, int idx); 222LUA_API int lua_next (lua_State *L, int idx);