aboutsummaryrefslogtreecommitdiff
path: root/lua.h
diff options
context:
space:
mode:
authorWaldemar Celes <celes@tecgraf.puc-rio.br>1994-08-17 12:05:08 -0300
committerWaldemar Celes <celes@tecgraf.puc-rio.br>1994-08-17 12:05:08 -0300
commit7c05266050ce179597c339c4d4bbab31ce1bd2e4 (patch)
treea43bce1baa733adad7444d1453ef891bfa95a577 /lua.h
parent592a949272de2b71abae3856553ac916fc1880bd (diff)
downloadlua-7c05266050ce179597c339c4d4bbab31ce1bd2e4.tar.gz
lua-7c05266050ce179597c339c4d4bbab31ce1bd2e4.tar.bz2
lua-7c05266050ce179597c339c4d4bbab31ce1bd2e4.zip
novas funcoes 'gettable' e 'pushtable'.
Diffstat (limited to 'lua.h')
-rw-r--r--lua.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/lua.h b/lua.h
index 56adb3b3..db931825 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 1.1 1993/12/17 18:41:19 celes Exp celes $ 5** $Id: lua.h,v 1.2 1994/08/03 14:15:46 celes Exp celes $
6*/ 6*/
7 7
8 8
@@ -14,7 +14,6 @@ typedef struct Object *lua_Object;
14 14
15#define lua_register(n,f) (lua_pushcfunction(f), lua_storeglobal(n)) 15#define lua_register(n,f) (lua_pushcfunction(f), lua_storeglobal(n))
16 16
17
18void lua_errorfunction (void (*fn) (char *s)); 17void lua_errorfunction (void (*fn) (char *s));
19void lua_error (char *s); 18void lua_error (char *s);
20int lua_dofile (char *filename); 19int lua_dofile (char *filename);
@@ -28,6 +27,7 @@ char *lua_getstring (lua_Object object);
28char *lua_copystring (lua_Object object); 27char *lua_copystring (lua_Object object);
29lua_CFunction lua_getcfunction (lua_Object object); 28lua_CFunction lua_getcfunction (lua_Object object);
30void *lua_getuserdata (lua_Object object); 29void *lua_getuserdata (lua_Object object);
30void *lua_gettable (lua_Object object);
31lua_Object lua_getfield (lua_Object object, char *field); 31lua_Object lua_getfield (lua_Object object, char *field);
32lua_Object lua_getindexed (lua_Object object, float index); 32lua_Object lua_getindexed (lua_Object object, float index);
33lua_Object lua_getglobal (char *name); 33lua_Object lua_getglobal (char *name);
@@ -39,11 +39,14 @@ int lua_pushnumber (float n);
39int lua_pushstring (char *s); 39int lua_pushstring (char *s);
40int lua_pushcfunction (lua_CFunction fn); 40int lua_pushcfunction (lua_CFunction fn);
41int lua_pushuserdata (void *u); 41int lua_pushuserdata (void *u);
42int lua_pushtable (void *t);
43int lua_pushsubscript (void);
42int lua_pushobject (lua_Object object); 44int lua_pushobject (lua_Object object);
43 45
44int lua_storeglobal (char *name); 46int lua_storeglobal (char *name);
45int lua_storefield (lua_Object object, char *field); 47int lua_storefield (lua_Object object, char *field);
46int lua_storeindexed (lua_Object object, float index); 48int lua_storeindexed (lua_Object object, float index);
49int lua_storesubscript (void);
47 50
48int lua_isnil (lua_Object object); 51int lua_isnil (lua_Object object);
49int lua_isnumber (lua_Object object); 52int lua_isnumber (lua_Object object);