aboutsummaryrefslogtreecommitdiff
path: root/lua.h
diff options
context:
space:
mode:
Diffstat (limited to 'lua.h')
-rw-r--r--lua.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/lua.h b/lua.h
index 1cce56c0..91d80c02 100644
--- a/lua.h
+++ b/lua.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: $ 2** $Id: lua.h,v 1.1 1997/09/16 19:25:59 roberto Exp roberto $
3** LUA - An Extensible Extension Language 3** LUA - An Extensible Extension Language
4** TeCGraf: Grupo de Tecnologia em Computacao Grafica, PUC-Rio, Brazil 4** TeCGraf: Grupo de Tecnologia em Computacao Grafica, PUC-Rio, Brazil
5** e-mail: lua@tecgraf.puc-rio.br 5** e-mail: lua@tecgraf.puc-rio.br
@@ -72,6 +72,7 @@ void lua_endblock (void);
72lua_Object lua_lua2C (int number); 72lua_Object lua_lua2C (int number);
73#define lua_getparam(_) lua_lua2C(_) 73#define lua_getparam(_) lua_lua2C(_)
74#define lua_getresult(_) lua_lua2C(_) 74#define lua_getresult(_) lua_lua2C(_)
75lua_Object lua_upvalue (int n);
75 76
76int lua_isnil (lua_Object object); 77int lua_isnil (lua_Object object);
77int lua_istable (lua_Object object); 78int lua_istable (lua_Object object);
@@ -90,7 +91,7 @@ void *lua_getuserdata (lua_Object object);
90void lua_pushnil (void); 91void lua_pushnil (void);
91void lua_pushnumber (float n); 92void lua_pushnumber (float n);
92void lua_pushstring (char *s); 93void lua_pushstring (char *s);
93void lua_pushcfunction (lua_CFunction fn); 94void lua_pushCclosure (lua_CFunction fn, int n);
94void lua_pushusertag (void *u, int tag); 95void lua_pushusertag (void *u, int tag);
95void lua_pushobject (lua_Object object); 96void lua_pushobject (lua_Object object);
96 97
@@ -131,6 +132,7 @@ long lua_collectgarbage (long limit);
131 132
132#define lua_pushuserdata(u) lua_pushusertag(u, 0) 133#define lua_pushuserdata(u) lua_pushusertag(u, 0)
133 134
135#define lua_pushcfunction(f) lua_pushCclosure(f, 0)
134 136
135 137
136 138