diff options
author | Andy Belle-Isle <drumsetmonkey@gmail.com> | 2019-08-25 16:39:02 -0400 |
---|---|---|
committer | Andy Belle-Isle <drumsetmonkey@gmail.com> | 2019-08-25 16:39:02 -0400 |
commit | bb283f4581ac07a4dd75325c4343d7f28b1ff376 (patch) | |
tree | f3892f8b77177149ae0294e7241d2ecaf58b64a6 /lib/LuaJIT/src/lj_func.h | |
parent | d48436bbf5032484ff7d9c2667a63672e306ca18 (diff) |
Fixed LuaJIT files
Diffstat (limited to 'lib/LuaJIT/src/lj_func.h')
-rw-r--r-- | lib/LuaJIT/src/lj_func.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/LuaJIT/src/lj_func.h b/lib/LuaJIT/src/lj_func.h new file mode 100644 index 0000000..901751b --- /dev/null +++ b/lib/LuaJIT/src/lj_func.h @@ -0,0 +1,24 @@ +/* +** Function handling (prototypes, functions and upvalues). +** Copyright (C) 2005-2017 Mike Pall. See Copyright Notice in luajit.h +*/ + +#ifndef _LJ_FUNC_H +#define _LJ_FUNC_H + +#include "lj_obj.h" + +/* Prototypes. */ +LJ_FUNC void LJ_FASTCALL lj_func_freeproto(global_State *g, GCproto *pt); + +/* Upvalues. */ +LJ_FUNCA void LJ_FASTCALL lj_func_closeuv(lua_State *L, TValue *level); +LJ_FUNC void LJ_FASTCALL lj_func_freeuv(global_State *g, GCupval *uv); + +/* Functions (closures). */ +LJ_FUNC GCfunc *lj_func_newC(lua_State *L, MSize nelems, GCtab *env); +LJ_FUNC GCfunc *lj_func_newL_empty(lua_State *L, GCproto *pt, GCtab *env); +LJ_FUNCA GCfunc *lj_func_newL_gc(lua_State *L, GCproto *pt, GCfuncL *parent); +LJ_FUNC void LJ_FASTCALL lj_func_free(global_State *g, GCfunc *c); + +#endif |