From ff08b0f4069e322ec4c2b02aa5553424227357ba Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 16 Sep 1997 16:25:59 -0300 Subject: Lua Function structures --- lfunc.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 lfunc.h (limited to 'lfunc.h') diff --git a/lfunc.h b/lfunc.h new file mode 100644 index 00000000..ed5a085b --- /dev/null +++ b/lfunc.h @@ -0,0 +1,26 @@ +/* +** $Id: $ +** Lua Function structures +** See Copyright Notice in lua.h +*/ + +#ifndef lfunc_h +#define lfunc_h + + +#include "lobject.h" + + +extern TProtoFunc *luaF_root; +extern Closure *luaF_rootcl; + + +TProtoFunc *luaF_newproto (void); +Closure *luaF_newclosure (int nelems); +void luaF_freeproto (TProtoFunc *l); +void luaF_freeclosure (Closure *l); + +char *luaF_getlocalname (TProtoFunc *func, int local_number, int line); + + +#endif -- cgit v1.2.3-55-g6feb