aboutsummaryrefslogtreecommitdiff
path: root/linit.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-12-06 09:43:09 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-12-06 09:43:09 -0200
commit3e38fd24639bc7cd8afe063619d5ab4637db696f (patch)
tree8540ed55c0b88a85e2026d15dcd1bb2b50d79de0 /linit.c
parent533beedad254004d627437984d5ea521d2d2fa48 (diff)
downloadlua-3e38fd24639bc7cd8afe063619d5ab4637db696f.tar.gz
lua-3e38fd24639bc7cd8afe063619d5ab4637db696f.tar.bz2
lua-3e38fd24639bc7cd8afe063619d5ab4637db696f.zip
`lua_setfallback' leaves things on the stack, so it is better to protect
it.
Diffstat (limited to 'linit.c')
-rw-r--r--linit.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/linit.c b/linit.c
index 601f8354..a7ce2b32 100644
--- a/linit.c
+++ b/linit.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: linit.c,v 1.1 1999/01/08 16:49:32 roberto Exp roberto $ 2** $Id: linit.c,v 1.2 1999/11/22 13:12:07 roberto Exp roberto $
3** Initialization of libraries for lua.c 3** Initialization of libraries for lua.c
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -11,9 +11,11 @@
11 11
12 12
13void lua_userinit (lua_State *L) { 13void lua_userinit (lua_State *L) {
14 lua_beginblock(L);
14 lua_iolibopen(L); 15 lua_iolibopen(L);
15 lua_strlibopen(L); 16 lua_strlibopen(L);
16 lua_mathlibopen(L); 17 lua_mathlibopen(L);
17 lua_dblibopen(L); 18 lua_dblibopen(L);
19 lua_endblock(L);
18} 20}
19 21