getn/setn in C moved to lauxlib

This commit is contained in:
Roberto Ierusalimschy
2003-01-27 11:46:16 -02:00
parent 635b7c707d
commit 41ed3c4771
3 changed files with 94 additions and 61 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lauxlib.h,v 1.55 2002/11/14 15:41:38 roberto Exp roberto $
** $Id: lauxlib.h,v 1.56 2003/01/17 15:28:09 roberto Exp roberto $
** Auxiliary functions for building Lua libraries
** See Copyright Notice in lua.h
*/
@@ -51,6 +51,9 @@ LUALIB_API int luaL_findstring (const char *st, const char *const lst[]);
LUALIB_API int luaL_ref (lua_State *L, int t);
LUALIB_API void luaL_unref (lua_State *L, int t, int ref);
LUALIB_API int luaL_getn (lua_State *L, int t);
LUALIB_API void luaL_setn (lua_State *L, int t, int n);
LUALIB_API int luaL_loadfile (lua_State *L, const char *filename);
LUALIB_API int luaL_loadbuffer (lua_State *L, const char *buff, size_t sz,
const char *name);