diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-02-06 16:18:58 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-02-06 16:18:58 -0200 |
| commit | 322b7b5fc55da0d166efc693cfe674220190b010 (patch) | |
| tree | 1e01fd53e7a4aece6b7eb20445307e257511b5d1 /ltests.c | |
| parent | 1f917e709ca3fe41cf07fd4bf99a080883521394 (diff) | |
| download | lua-322b7b5fc55da0d166efc693cfe674220190b010.tar.gz lua-322b7b5fc55da0d166efc693cfe674220190b010.tar.bz2 lua-322b7b5fc55da0d166efc693cfe674220190b010.zip | |
easier to add new initialization functions
Diffstat (limited to 'ltests.c')
| -rw-r--r-- | ltests.c | 8 |
1 files changed, 1 insertions, 7 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: ltests.c,v 1.62 2001/02/02 15:13:05 roberto Exp roberto $ | 2 | ** $Id: ltests.c,v 1.63 2001/02/06 16:01:29 roberto Exp roberto $ |
| 3 | ** Internal Module for Debugging of the Lua Implementation | 3 | ** Internal Module for Debugging of the Lua Implementation |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -652,12 +652,6 @@ void luaB_opentests (lua_State *L) { | |||
| 652 | luaL_openl(L, tests_funcs); /* open functions inside new table */ | 652 | luaL_openl(L, tests_funcs); /* open functions inside new table */ |
| 653 | lua_setglobals(L); /* restore old table of globals */ | 653 | lua_setglobals(L); /* restore old table of globals */ |
| 654 | lua_setglobal(L, "T"); /* set new table as global T */ | 654 | lua_setglobal(L, "T"); /* set new table as global T */ |
| 655 | /* open other libraries */ | ||
| 656 | lua_baselibopen(L); | ||
| 657 | lua_iolibopen(L); | ||
| 658 | lua_strlibopen(L); | ||
| 659 | lua_mathlibopen(L); | ||
| 660 | lua_dblibopen(L); | ||
| 661 | } | 655 | } |
| 662 | 656 | ||
| 663 | #endif | 657 | #endif |
