summaryrefslogtreecommitdiff
path: root/src/lfunc.h
diff options
context:
space:
mode:
authorLua Team <team@lua.org>2006-06-19 12:00:00 +0000
committerrepogen <>2006-06-19 12:00:00 +0000
commit0de9166148af8217fd15c8540755753c0256581b (patch)
tree0d5d72e0a7b6b2c91d43dec1a49e8f76e417e6c7 /src/lfunc.h
parente7731a8fb8a317aa5c444ef073bfad82fa5baa54 (diff)
downloadlua-github-5.0.x.tar.gz
Lua 5.0.35.0.35.0.x
Diffstat (limited to 'src/lfunc.h')
-rw-r--r--src/lfunc.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lfunc.h b/src/lfunc.h
index 5d532507..dc61e2ed 100644
--- a/src/lfunc.h
+++ b/src/lfunc.h
@@ -1,5 +1,5 @@
/*
-** $Id: lfunc.h,v 1.21 2003/03/18 12:50:04 roberto Exp $
+** $Id: lfunc.h,v 1.21a 2003/03/18 12:50:04 roberto Exp $
** Auxiliary functions to manipulate prototypes and closures
** See Copyright Notice in lua.h
*/
@@ -11,6 +11,13 @@
#include "lobject.h"
+#define sizeCclosure(n) (cast(int, sizeof(CClosure)) + \
+ cast(int, sizeof(TObject)*((n)-1)))
+
+#define sizeLclosure(n) (cast(int, sizeof(LClosure)) + \
+ cast(int, sizeof(TObject *)*((n)-1)))
+
+
Proto *luaF_newproto (lua_State *L);
Closure *luaF_newCclosure (lua_State *L, int nelems);
Closure *luaF_newLclosure (lua_State *L, int nelems, TObject *e);