lfunc.h 696 B

1234567891011121314151617181920212223242526
  1. /*
  2. ** $Id: lfunc.h,v 1.21 2003/03/18 12:50:04 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_newupval (lua_State *L);
  13. UpVal *luaF_findupval (lua_State *L, StkId level);
  14. void luaF_close (lua_State *L, StkId level);
  15. void luaF_freeproto (lua_State *L, Proto *f);
  16. void luaF_freeclosure (lua_State *L, Closure *c);
  17. const char *luaF_getlocalname (const Proto *func, int local_number, int pc);
  18. #endif