aboutsummaryrefslogtreecommitdiff
path: root/lua.h
diff options
context:
space:
mode:
Diffstat (limited to 'lua.h')
-rw-r--r--lua.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/lua.h b/lua.h
index 993c8294..43428218 100644
--- a/lua.h
+++ b/lua.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lua.h,v 1.24 1998/08/21 17:43:44 roberto Exp roberto $ 2** $Id: lua.h,v 1.25 1998/12/15 14:59:43 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
@@ -100,30 +100,22 @@ long lua_collectgarbage (long limit);
100 100
101 101
102/* =============================================================== */ 102/* =============================================================== */
103/* some useful macros/derived functions */ 103/* some useful macros/functions */
104 104
105int (lua_call) (char *name);
106#define lua_call(name) lua_callfunction(lua_getglobal(name)) 105#define lua_call(name) lua_callfunction(lua_getglobal(name))
107 106
108void (lua_pushref) (int ref);
109#define lua_pushref(ref) lua_pushobject(lua_getref(ref)) 107#define lua_pushref(ref) lua_pushobject(lua_getref(ref))
110 108
111int (lua_refobject) (lua_Object o, int l);
112#define lua_refobject(o,l) (lua_pushobject(o), lua_ref(l)) 109#define lua_refobject(o,l) (lua_pushobject(o), lua_ref(l))
113 110
114void (lua_register) (char *n, lua_CFunction f);
115#define lua_register(n,f) (lua_pushcfunction(f), lua_setglobal(n)) 111#define lua_register(n,f) (lua_pushcfunction(f), lua_setglobal(n))
116 112
117void (lua_pushuserdata) (void *u);
118#define lua_pushuserdata(u) lua_pushusertag(u, 0) 113#define lua_pushuserdata(u) lua_pushusertag(u, 0)
119 114
120void (lua_pushcfunction) (lua_CFunction f);
121#define lua_pushcfunction(f) lua_pushcclosure(f, 0) 115#define lua_pushcfunction(f) lua_pushcclosure(f, 0)
122 116
123int (lua_clonetag) (int t);
124#define lua_clonetag(t) lua_copytagmethods(lua_newtag(), (t)) 117#define lua_clonetag(t) lua_copytagmethods(lua_newtag(), (t))
125 118
126
127lua_Object lua_seterrormethod (void); /* In: new method */ 119lua_Object lua_seterrormethod (void); /* In: new method */
128 120
129/* ========================================================================== 121/* ==========================================================================