summaryrefslogtreecommitdiff
path: root/lua.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1994-11-18 17:46:21 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1994-11-18 17:46:21 -0200
commit93ccdd52ef83e283f7357c7e9de3a8773b26a16d (patch)
treedabd6f8a9c903b4ea9397ec82d7829d268f7dec3 /lua.h
parent333a4f13d084b99c3729414c9c2d66222a8a1fc7 (diff)
downloadlua-github-93ccdd52ef83e283f7357c7e9de3a8773b26a16d.tar.gz
lua_lock receives its parameter via stack.
beginblock and endblock do not have parameters
Diffstat (limited to 'lua.h')
-rw-r--r--lua.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/lua.h b/lua.h
index 91fec003..221060eb 100644
--- a/lua.h
+++ b/lua.h
@@ -2,7 +2,7 @@
** LUA - Linguagem para Usuarios de Aplicacao
** Grupo de Tecnologia em Computacao Grafica
** TeCGraf - PUC-Rio
-** $Id: lua.h,v 3.9 1994/11/17 21:23:43 roberto Exp roberto $
+** $Id: lua.h,v 3.10 1994/11/17 21:27:30 roberto Exp roberto $
*/
@@ -36,8 +36,8 @@ int lua_dostring (char *string);
int lua_callfunction (lua_Object function);
int lua_call (char *funcname);
-int lua_beginblock (void);
-void lua_endblock (int block);
+void lua_beginblock (void);
+void lua_endblock (void);
lua_Object lua_getparam (int number);
#define lua_getresult(_) lua_getparam(_)
@@ -63,14 +63,17 @@ lua_Object lua_getsubscript (void);
int lua_type (lua_Object object);
-int lua_lock (lua_Object object);
+int lua_lock (void);
lua_Object lua_getlocked (int ref);
void lua_unlock (int ref);
-lua_Object lua_createTable (int initSize);
+lua_Object lua_createtable (int initSize);
+
/* for lua 1.1 */
+#define lua_lockobject(o) (lua_pushobject(o), lua_lock())
+
#define lua_register(n,f) (lua_pushcfunction(f), lua_storeglobal(n))
#define lua_getindexed(o,n) (lua_pushobject(o), lua_pushnumber(n), lua_getsubscript())