annotate src/lua/lfunc.h @ 357:f8b374397426
got elemental stones; floor four complete.
author |
Robert McIntyre <rlm@mit.edu> |
date |
Mon, 09 Apr 2012 07:20:41 -0500 |
parents |
27763b933818 |
children |
|
rev |
line source |
rlm@1
|
1 /*
|
rlm@1
|
2 ** $Id: lfunc.h,v 2.4.1.1 2007/12/27 13:02:25 roberto Exp $
|
rlm@1
|
3 ** Auxiliary functions to manipulate prototypes and closures
|
rlm@1
|
4 ** See Copyright Notice in lua.h
|
rlm@1
|
5 */
|
rlm@1
|
6
|
rlm@1
|
7 #ifndef lfunc_h
|
rlm@1
|
8 #define lfunc_h
|
rlm@1
|
9
|
rlm@1
|
10
|
rlm@1
|
11 #include "lobject.h"
|
rlm@1
|
12
|
rlm@1
|
13
|
rlm@1
|
14 #define sizeCclosure(n) (cast(int, sizeof(CClosure)) + \
|
rlm@1
|
15 cast(int, sizeof(TValue)*((n)-1)))
|
rlm@1
|
16
|
rlm@1
|
17 #define sizeLclosure(n) (cast(int, sizeof(LClosure)) + \
|
rlm@1
|
18 cast(int, sizeof(TValue *)*((n)-1)))
|
rlm@1
|
19
|
rlm@1
|
20
|
rlm@1
|
21 LUAI_FUNC Proto *luaF_newproto (lua_State *L);
|
rlm@1
|
22 LUAI_FUNC Closure *luaF_newCclosure (lua_State *L, int nelems, Table *e);
|
rlm@1
|
23 LUAI_FUNC Closure *luaF_newLclosure (lua_State *L, int nelems, Table *e);
|
rlm@1
|
24 LUAI_FUNC UpVal *luaF_newupval (lua_State *L);
|
rlm@1
|
25 LUAI_FUNC UpVal *luaF_findupval (lua_State *L, StkId level);
|
rlm@1
|
26 LUAI_FUNC void luaF_close (lua_State *L, StkId level);
|
rlm@1
|
27 LUAI_FUNC void luaF_freeproto (lua_State *L, Proto *f);
|
rlm@1
|
28 LUAI_FUNC void luaF_freeclosure (lua_State *L, Closure *c);
|
rlm@1
|
29 LUAI_FUNC void luaF_freeupval (lua_State *L, UpVal *uv);
|
rlm@1
|
30 LUAI_FUNC const char *luaF_getlocalname (const Proto *func, int local_number,
|
rlm@1
|
31 int pc);
|
rlm@1
|
32
|
rlm@1
|
33
|
rlm@1
|
34 #endif
|