lfunc.h 660 B

12345678910111213141516171819202122232425
  1. /*
  2. ** $Id: lfunc.h,v 1.19 2001/11/29 20:22:22 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 *gt);
  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