lfunc.h 659 B

12345678910111213141516171819202122232425
  1. /*
  2. ** $Id: lfunc.h,v 1.20 2002/06/20 20:41:46 roberto Exp roberto $
  3. ** Auxiliary functions to manipulate prototypes and closures
  4. ** See Copyright Notice in lua.h
  5. */
  6. #ifndef lfunc_h
  7. #define lfunc_h
  8. #include "lobject.h"
  9. Proto *luaF_newproto (lua_State *L);
  10. Closure *luaF_newCclosure (lua_State *L, int nelems);
  11. Closure *luaF_newLclosure (lua_State *L, int nelems, TObject *e);
  12. UpVal *luaF_findupval (lua_State *L, StkId level);
  13. void luaF_close (lua_State *L, StkId level);
  14. void luaF_freeproto (lua_State *L, Proto *f);
  15. void luaF_freeclosure (lua_State *L, Closure *c);
  16. const char *luaF_getlocalname (const Proto *func, int local_number, int pc);
  17. #endif