Lua 5.1.4: lfunc.h


L0001    /*
L0002    ** $Id: lfunc.h,v 2.4.1.1 2007/12/27 13:02:25 roberto Exp $
L0003    ** Auxiliary functions to manipulate prototypes and closures
L0004    ** See Copyright Notice in lua.h
L0005    */
L0006    
L0007    #ifndef lfunc_h
L0008    #define lfunc_h
L0009    
L0010    
L0011    #include "lobject.h"
L0012    
L0013    
L0014    #define sizeCclosure(n)	(cast(int, sizeof(CClosure)) + \
L0015                             cast(int, sizeof(TValue)*((n)-1)))
L0016    
L0017    #define sizeLclosure(n)	(cast(int, sizeof(LClosure)) + \
L0018                             cast(int, sizeof(TValue *)*((n)-1)))
L0019    
L0020    
L0021    LUAI_FUNC Proto *luaF_newproto (lua_State *L);
L0022    LUAI_FUNC Closure *luaF_newCclosure (lua_State *L, int nelems, Table *e);
L0023    LUAI_FUNC Closure *luaF_newLclosure (lua_State *L, int nelems, Table *e);
L0024    LUAI_FUNC UpVal *luaF_newupval (lua_State *L);
L0025    LUAI_FUNC UpVal *luaF_findupval (lua_State *L, StkId level);
L0026    LUAI_FUNC void luaF_close (lua_State *L, StkId level);
L0027    LUAI_FUNC void luaF_freeproto (lua_State *L, Proto *f);
L0028    LUAI_FUNC void luaF_freeclosure (lua_State *L, Closure *c);
L0029    LUAI_FUNC void luaF_freeupval (lua_State *L, UpVal *uv);
L0030    LUAI_FUNC const char *luaF_getlocalname (const Proto *func, int local_number,
L0031                                             int pc);
L0032    
L0033    
L0034    #endif

Generated by pretty.lua