diff options
Diffstat (limited to 'src/ldblib.c')
-rw-r--r-- | src/ldblib.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/ldblib.c b/src/ldblib.c index 6c1a1776..e7458634 100644 --- a/src/ldblib.c +++ b/src/ldblib.c @@ -1,5 +1,5 @@ /* -** $Id: ldblib.c,v 1.98 2005/05/17 19:49:15 roberto Exp $ +** $Id: ldblib.c,v 1.101 2005/08/26 17:36:32 roberto Exp $ ** Interface from Lua to its debug API ** See Copyright Notice in lua.h */ @@ -365,26 +365,26 @@ static int db_errorfb (lua_State *L) { } -static const luaL_reg dblib[] = { - {"getmetatable", db_getmetatable}, - {"setmetatable", db_setmetatable}, +static const luaL_Reg dblib[] = { + {"debug", db_debug}, {"getfenv", db_getfenv}, - {"setfenv", db_setfenv}, - {"getlocal", db_getlocal}, - {"getinfo", db_getinfo}, {"gethook", db_gethook}, + {"getinfo", db_getinfo}, + {"getlocal", db_getlocal}, + {"getmetatable", db_getmetatable}, {"getupvalue", db_getupvalue}, + {"setfenv", db_setfenv}, {"sethook", db_sethook}, {"setlocal", db_setlocal}, + {"setmetatable", db_setmetatable}, {"setupvalue", db_setupvalue}, - {"debug", db_debug}, {"traceback", db_errorfb}, {NULL, NULL} }; LUALIB_API int luaopen_debug (lua_State *L) { - luaL_openlib(L, LUA_DBLIBNAME, dblib, 0); + luaL_register(L, LUA_DBLIBNAME, dblib); return 1; } |