aboutsummaryrefslogtreecommitdiff
path: root/lua.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-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 @@
2** LUA - Linguagem para Usuarios de Aplicacao 2** LUA - Linguagem para Usuarios de Aplicacao
3** Grupo de Tecnologia em Computacao Grafica 3** Grupo de Tecnologia em Computacao Grafica
4** TeCGraf - PUC-Rio 4** TeCGraf - PUC-Rio
5** $Id: lua.h,v 3.9 1994/11/17 21:23:43 roberto Exp roberto $ 5** $Id: lua.h,v 3.10 1994/11/17 21:27:30 roberto Exp roberto $
6*/ 6*/
7 7
8 8
@@ -36,8 +36,8 @@ int lua_dostring (char *string);
36int lua_callfunction (lua_Object function); 36int lua_callfunction (lua_Object function);
37int lua_call (char *funcname); 37int lua_call (char *funcname);
38 38
39int lua_beginblock (void); 39void lua_beginblock (void);
40void lua_endblock (int block); 40void lua_endblock (void);
41 41
42lua_Object lua_getparam (int number); 42lua_Object lua_getparam (int number);
43#define lua_getresult(_) lua_getparam(_) 43#define lua_getresult(_) lua_getparam(_)
@@ -63,14 +63,17 @@ lua_Object lua_getsubscript (void);
63 63
64int lua_type (lua_Object object); 64int lua_type (lua_Object object);
65 65
66int lua_lock (lua_Object object); 66int lua_lock (void);
67lua_Object lua_getlocked (int ref); 67lua_Object lua_getlocked (int ref);
68void lua_unlock (int ref); 68void lua_unlock (int ref);
69 69
70lua_Object lua_createTable (int initSize); 70lua_Object lua_createtable (int initSize);
71
71 72
72/* for lua 1.1 */ 73/* for lua 1.1 */
73 74
75#define lua_lockobject(o) (lua_pushobject(o), lua_lock())
76
74#define lua_register(n,f) (lua_pushcfunction(f), lua_storeglobal(n)) 77#define lua_register(n,f) (lua_pushcfunction(f), lua_storeglobal(n))
75 78
76#define lua_getindexed(o,n) (lua_pushobject(o), lua_pushnumber(n), lua_getsubscript()) 79#define lua_getindexed(o,n) (lua_pushobject(o), lua_pushnumber(n), lua_getsubscript())