diff options
author | pixel <pixel> | 2007-07-25 16:54:32 +0000 |
---|---|---|
committer | pixel <pixel> | 2007-07-25 16:54:32 +0000 |
commit | a68385b1043a2041390f65ce5cf9ed434af5e95d (patch) | |
tree | 5e8f3789cbc0ac70c2203a64b61c51a34958b36d /lib/lua/includes | |
parent | e2d934b54dbcc35c134d3407ebefec50e525f6fe (diff) |
Upgrading to Lua-5.0.3
Diffstat (limited to 'lib/lua/includes')
-rw-r--r-- | lib/lua/includes/lfunc.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/lua/includes/lfunc.h b/lib/lua/includes/lfunc.h index 6af41b7..df8f1c9 100644 --- a/lib/lua/includes/lfunc.h +++ b/lib/lua/includes/lfunc.h @@ -1,5 +1,5 @@ /* -** $Id: lfunc.h,v 1.4 2004-11-27 21:46:06 pixel Exp $ +** $Id: lfunc.h,v 1.5 2007-07-25 16:54:32 pixel 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); |