Mercurial > vba-linux
view src/lua/lfunc.h @ 33:44974c3e093b
found source of problem for video recording
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Mon, 05 Mar 2012 01:25:11 -0600 |
parents | 27763b933818 |
children |
line wrap: on
line source
1 /*2 ** $Id: lfunc.h,v 2.4.1.1 2007/12/27 13:02:25 roberto Exp $3 ** Auxiliary functions to manipulate prototypes and closures4 ** See Copyright Notice in lua.h5 */7 #ifndef lfunc_h8 #define lfunc_h11 #include "lobject.h"14 #define sizeCclosure(n) (cast(int, sizeof(CClosure)) + \15 cast(int, sizeof(TValue)*((n)-1)))17 #define sizeLclosure(n) (cast(int, sizeof(LClosure)) + \18 cast(int, sizeof(TValue *)*((n)-1)))21 LUAI_FUNC Proto *luaF_newproto (lua_State *L);22 LUAI_FUNC Closure *luaF_newCclosure (lua_State *L, int nelems, Table *e);23 LUAI_FUNC Closure *luaF_newLclosure (lua_State *L, int nelems, Table *e);24 LUAI_FUNC UpVal *luaF_newupval (lua_State *L);25 LUAI_FUNC UpVal *luaF_findupval (lua_State *L, StkId level);26 LUAI_FUNC void luaF_close (lua_State *L, StkId level);27 LUAI_FUNC void luaF_freeproto (lua_State *L, Proto *f);28 LUAI_FUNC void luaF_freeclosure (lua_State *L, Closure *c);29 LUAI_FUNC void luaF_freeupval (lua_State *L, UpVal *uv);30 LUAI_FUNC const char *luaF_getlocalname (const Proto *func, int local_number,31 int pc);34 #endif