The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
lfunc.h
Go to the documentation of this file.
1 /*
2 ** Auxiliary functions to manipulate prototypes and closures
3 ** See Copyright Notice in lua.h
4 */
5 
6 #ifndef lfunc_h
7 #define lfunc_h
8 
9 
10 #include "lobject.h"
11 
12 
13 #define sizeCclosure(n) (cast(int, sizeof(CClosure)) + \
14  cast(int, sizeof(TValue)*((n)-1)))
15 
16 #define sizeLclosure(n) (cast(int, sizeof(LClosure)) + \
17  cast(int, sizeof(TValue *)*((n)-1)))
18 
19 
28 LUAI_FUNC const char *luaF_getlocalname (const Proto *func, int local_number,
29  int pc);
30 
31 
32 #endif
GLint level
Definition: glew.h:1220
LUAI_FUNC Proto * luaF_newproto(lua_State *L)
Definition: lfunc.cpp:109
Definition: lobject.h:466
LUAI_FUNC void luaF_freeupval(lua_State *L, UpVal *uv)
Definition: lfunc.cpp:81
#define LUAI_FUNC
Definition: luaconf.h:187
Definition: lobject.h:495
LUAI_FUNC const char * luaF_getlocalname(const Proto *func, int local_number, int pc)
Definition: lfunc.cpp:149
LUAI_FUNC UpVal * luaF_newupval(lua_State *L)
Definition: lfunc.cpp:38
LUAI_FUNC UpVal * luaF_findupval(lua_State *L, StkId level)
Definition: lfunc.cpp:46
LUAI_FUNC void luaF_close(lua_State *L, StkId level)
Definition: lfunc.cpp:88
LUAI_FUNC Closure * luaF_newLclosure(lua_State *L, int nelems)
Definition: lfunc.cpp:29
LUAI_FUNC void luaF_freeproto(lua_State *L, Proto *f)
Definition: lfunc.cpp:134
LUAI_FUNC Closure * luaF_newCclosure(lua_State *L, int nelems)
Definition: lfunc.cpp:22
GLclampf f
Definition: glew.h:3024