aboutsummaryrefslogtreecommitdiff
path: root/lua.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-12-11 15:21:11 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-12-11 15:21:11 -0200
commit4daae2165d617e57ad1460471f8d902d38abac6e (patch)
tree84eb55fa794a864ac48b528a617d5293502190ea /lua.h
parentcdd261f332c112b86eddd7438b9a06e1231e3e4c (diff)
downloadlua-4daae2165d617e57ad1460471f8d902d38abac6e.tar.gz
lua-4daae2165d617e57ad1460471f8d902d38abac6e.tar.bz2
lua-4daae2165d617e57ad1460471f8d902d38abac6e.zip
new API function and built-in "lua_copytagmethods"
Diffstat (limited to 'lua.h')
-rw-r--r--lua.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lua.h b/lua.h
index a83826c9..049b1316 100644
--- a/lua.h
+++ b/lua.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lua.h,v 1.8 1997/12/01 20:31:25 roberto Exp roberto $ 2** $Id: lua.h,v 1.9 1997/12/09 13:35:19 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
@@ -64,6 +64,7 @@ lua_Object lua_gettagmethod (int tag, char *event);
64lua_Object lua_seterrormethod (void); /* In: new method */ 64lua_Object lua_seterrormethod (void); /* In: new method */
65 65
66int lua_newtag (void); 66int lua_newtag (void);
67int lua_copytagmethods (int tagto, int tagfrom);
67void lua_settag (int tag); /* In: object */ 68void lua_settag (int tag); /* In: object */
68 69
69void lua_error (char *s); 70void lua_error (char *s);
@@ -139,6 +140,7 @@ long lua_collectgarbage (long limit);
139 140
140#define lua_pushcfunction(f) lua_pushCclosure(f, 0) 141#define lua_pushcfunction(f) lua_pushCclosure(f, 0)
141 142
143#define lua_clonetag(t) lua_copytagmethods(lua_newtag(), (t))
142 144
143 145
144/* ========================================================================== 146/* ==========================================================================