diff options
Diffstat (limited to 'lua.h')
-rw-r--r-- | lua.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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); | |||
72 | lua_Object lua_lua2C (int number); | 72 | lua_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(_) |
75 | lua_Object lua_upvalue (int n); | ||
75 | 76 | ||
76 | int lua_isnil (lua_Object object); | 77 | int lua_isnil (lua_Object object); |
77 | int lua_istable (lua_Object object); | 78 | int lua_istable (lua_Object object); |
@@ -90,7 +91,7 @@ void *lua_getuserdata (lua_Object object); | |||
90 | void lua_pushnil (void); | 91 | void lua_pushnil (void); |
91 | void lua_pushnumber (float n); | 92 | void lua_pushnumber (float n); |
92 | void lua_pushstring (char *s); | 93 | void lua_pushstring (char *s); |
93 | void lua_pushcfunction (lua_CFunction fn); | 94 | void lua_pushCclosure (lua_CFunction fn, int n); |
94 | void lua_pushusertag (void *u, int tag); | 95 | void lua_pushusertag (void *u, int tag); |
95 | void lua_pushobject (lua_Object object); | 96 | void 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 | ||