diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-10-11 18:41:21 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-10-11 18:41:21 -0300 |
commit | 0c3ea96541525c5e347f1072ac2659f010e2ec34 (patch) | |
tree | 7d67e22b34a3422465c3dd7ca066fd44cd1aa643 /lua.h | |
parent | babaa96eab3a5419889b393424db14377f581a69 (diff) | |
download | lua-0c3ea96541525c5e347f1072ac2659f010e2ec34.tar.gz lua-0c3ea96541525c5e347f1072ac2659f010e2ec34.tar.bz2 lua-0c3ea96541525c5e347f1072ac2659f010e2ec34.zip |
no more copytagmethod function
Diffstat (limited to 'lua.h')
-rw-r--r-- | lua.h | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lua.h,v 1.102 2001/07/19 13:24:18 roberto Exp roberto $ | 2 | ** $Id: lua.h,v 1.103 2001/08/31 19:46:07 roberto Exp $ |
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: info@lua.org | 5 | ** e-mail: info@lua.org |
@@ -202,7 +202,6 @@ LUA_API void lua_setgcthreshold (lua_State *L, int newthreshold); | |||
202 | ** miscellaneous functions | 202 | ** miscellaneous functions |
203 | */ | 203 | */ |
204 | LUA_API int lua_newtype (lua_State *L, const lua_char *name, int basictype); | 204 | LUA_API int lua_newtype (lua_State *L, const lua_char *name, int basictype); |
205 | LUA_API int lua_copytagmethods (lua_State *L, int tagto, int tagfrom); | ||
206 | LUA_API void lua_settag (lua_State *L, int tag); | 205 | LUA_API void lua_settag (lua_State *L, int tag); |
207 | 206 | ||
208 | LUA_API int lua_name2tag (lua_State *L, const lua_char *name); | 207 | LUA_API int lua_name2tag (lua_State *L, const lua_char *name); |
@@ -237,7 +236,6 @@ LUA_API int lua_getweakmode (lua_State *L, int index); | |||
237 | 236 | ||
238 | #define lua_register(L,n,f) (lua_pushcfunction(L, f), lua_setglobal(L, n)) | 237 | #define lua_register(L,n,f) (lua_pushcfunction(L, f), lua_setglobal(L, n)) |
239 | #define lua_pushcfunction(L,f) lua_pushcclosure(L, f, 0) | 238 | #define lua_pushcfunction(L,f) lua_pushcclosure(L, f, 0) |
240 | #define lua_clonetag(L,t) lua_copytagmethods(L, lua_newtag(L), (t)) | ||
241 | 239 | ||
242 | #define lua_isfunction(L,n) (lua_rawtag(L,n) == LUA_TFUNCTION) | 240 | #define lua_isfunction(L,n) (lua_rawtag(L,n) == LUA_TFUNCTION) |
243 | #define lua_istable(L,n) (lua_rawtag(L,n) == LUA_TTABLE) | 241 | #define lua_istable(L,n) (lua_rawtag(L,n) == LUA_TTABLE) |