mirror of
https://github.com/lua/lua
synced 2026-09-26 16:17:11 +03:00
luaL_openlib -> luaL_register, luaL_putchar -> luaL_addchar
This commit is contained in:
parent
16ddf86168
commit
5e8a9e324c
10 changed files with 45 additions and 36 deletions
4
ldblib.c
4
ldblib.c
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
** $Id: ldblib.c,v 1.98 2005/05/17 19:49:15 roberto Exp roberto $
|
||||
** $Id: ldblib.c,v 1.99 2005/07/12 14:32:08 roberto Exp roberto $
|
||||
** Interface from Lua to its debug API
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
|
|
@ -384,7 +384,7 @@ static const luaL_reg dblib[] = {
|
|||
|
||||
|
||||
LUALIB_API int luaopen_debug (lua_State *L) {
|
||||
luaL_openlib(L, LUA_DBLIBNAME, dblib, 0);
|
||||
luaL_register(L, LUA_DBLIBNAME, dblib);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue