diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-12-06 09:43:09 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-12-06 09:43:09 -0200 |
| commit | 3e38fd24639bc7cd8afe063619d5ab4637db696f (patch) | |
| tree | 8540ed55c0b88a85e2026d15dcd1bb2b50d79de0 /linit.c | |
| parent | 533beedad254004d627437984d5ea521d2d2fa48 (diff) | |
| download | lua-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.c | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -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 | ||
| 13 | void lua_userinit (lua_State *L) { | 13 | void 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 | ||
