mirror of
https://github.com/lua/lua
synced 2026-09-29 04:35:58 +03:00
`lua_setfallback' leaves things on the stack, so it is better to protect
it.
This commit is contained in:
parent
533beedad2
commit
3e38fd2463
1 changed files with 3 additions and 1 deletions
4
linit.c
4
linit.c
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
** $Id: linit.c,v 1.1 1999/01/08 16:49:32 roberto Exp roberto $
|
||||
** $Id: linit.c,v 1.2 1999/11/22 13:12:07 roberto Exp roberto $
|
||||
** Initialization of libraries for lua.c
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
|
|
@ -11,9 +11,11 @@
|
|||
|
||||
|
||||
void lua_userinit (lua_State *L) {
|
||||
lua_beginblock(L);
|
||||
lua_iolibopen(L);
|
||||
lua_strlibopen(L);
|
||||
lua_mathlibopen(L);
|
||||
lua_dblibopen(L);
|
||||
lua_endblock(L);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue