summaryrefslogtreecommitdiff
path: root/src/ldblib.c
diff options
context:
space:
mode:
authorLua Team <team@lua.org>2005-09-09 12:00:00 +0000
committerrepogen <>2005-09-09 12:00:00 +0000
commitbd80c4ee9b6d9464cf9f3ff4ee41890d8b3ca9e6 (patch)
treee1d7c1b341ccb9a3a1fb044ac6e67b5a5e0259b7 /src/ldblib.c
parentbf6b5550cdfbc0c4a3a4577776ad76628d80718e (diff)
downloadlua-github-5.1-alpha.tar.gz
Lua 5.1-alpha5.1-alpha
Diffstat (limited to 'src/ldblib.c')
-rw-r--r--src/ldblib.c18
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;
}