2009-12-08 18:46:35 +00:00
|
|
|
/*
|
|
|
|
** Function handling (prototypes, functions and upvalues).
|
2023-08-20 19:25:30 +00:00
|
|
|
** Copyright (C) 2005-2023 Mike Pall. See Copyright Notice in luajit.h
|
2009-12-08 18:46:35 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#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. */
|
2009-12-27 16:42:41 +00:00
|
|
|
LJ_FUNCA void LJ_FASTCALL lj_func_closeuv(lua_State *L, TValue *level);
|
2009-12-08 18:46:35 +00:00
|
|
|
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);
|
2011-06-12 22:58:13 +00:00
|
|
|
LJ_FUNC GCfunc *lj_func_newL_empty(lua_State *L, GCproto *pt, GCtab *env);
|
2009-12-08 18:46:35 +00:00
|
|
|
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
|