diff options
author | Mike Pall <mike> | 2009-12-08 19:46:35 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2009-12-08 19:46:35 +0100 |
commit | 55b16959717084884fd4a0cbae6d19e3786c20c7 (patch) | |
tree | c8a07a43c13679751ed25a9d06796e9e7b2134a6 /src/lj_func.h | |
download | luajit-2.0.0-beta1.tar.gz luajit-2.0.0-beta1.tar.bz2 luajit-2.0.0-beta1.zip |
RELEASE LuaJIT-2.0.0-beta1v2.0.0-beta1
Diffstat (limited to '')
-rw-r--r-- | src/lj_func.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/lj_func.h b/src/lj_func.h new file mode 100644 index 00000000..ee7942ea --- /dev/null +++ b/src/lj_func.h | |||
@@ -0,0 +1,25 @@ | |||
1 | /* | ||
2 | ** Function handling (prototypes, functions and upvalues). | ||
3 | ** Copyright (C) 2005-2009 Mike Pall. See Copyright Notice in luajit.h | ||
4 | */ | ||
5 | |||
6 | #ifndef _LJ_FUNC_H | ||
7 | #define _LJ_FUNC_H | ||
8 | |||
9 | #include "lj_obj.h" | ||
10 | |||
11 | /* Prototypes. */ | ||
12 | LJ_FUNC GCproto *lj_func_newproto(lua_State *L); | ||
13 | LJ_FUNC void LJ_FASTCALL lj_func_freeproto(global_State *g, GCproto *pt); | ||
14 | |||
15 | /* Upvalues. */ | ||
16 | LJ_FUNCA void lj_func_closeuv(lua_State *L, TValue *level); | ||
17 | LJ_FUNC void LJ_FASTCALL lj_func_freeuv(global_State *g, GCupval *uv); | ||
18 | |||
19 | /* Functions (closures). */ | ||
20 | LJ_FUNC GCfunc *lj_func_newC(lua_State *L, MSize nelems, GCtab *env); | ||
21 | LJ_FUNC GCfunc *lj_func_newL(lua_State *L, GCproto *pt, GCtab *env); | ||
22 | LJ_FUNCA GCfunc *lj_func_newL_gc(lua_State *L, GCproto *pt, GCfuncL *parent); | ||
23 | LJ_FUNC void LJ_FASTCALL lj_func_free(global_State *g, GCfunc *c); | ||
24 | |||
25 | #endif | ||