`setmetatable' cannot change protected objects

This commit is contained in:
Roberto Ierusalimschy
2002-09-16 16:49:45 -03:00
parent 8dae071f42
commit 32a5d96dfc
3 changed files with 16 additions and 12 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lauxlib.h,v 1.52 2002/08/08 20:08:41 roberto Exp roberto $
** $Id: lauxlib.h,v 1.53 2002/08/30 20:00:59 roberto Exp roberto $
** Auxiliary functions for building Lua libraries
** See Copyright Notice in lua.h
*/
@@ -30,6 +30,7 @@ typedef struct luaL_reg {
LUALIB_API void luaL_openlib (lua_State *L, const luaL_reg *l, int nup);
LUALIB_API void luaL_opennamedlib (lua_State *L, const char *libname,
const luaL_reg *l, int nup);
LUALIB_API int luaL_getmetafield (lua_State *L, int obj, const char *e);
LUALIB_API int luaL_callmeta (lua_State *L, int obj, const char *e);
LUALIB_API int luaL_typerror (lua_State *L, int narg, const char *tname);
LUALIB_API int luaL_argerror (lua_State *L, int numarg, const char *extramsg);