diff options
Diffstat (limited to 'lbuiltin.c')
| -rw-r--r-- | lbuiltin.c | 8 |
1 files changed, 4 insertions, 4 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lbuiltin.c,v 1.118 2000/08/04 19:38:35 roberto Exp roberto $ | 2 | ** $Id: lbuiltin.c,v 1.119 2000/08/09 19:16:57 roberto Exp roberto $ |
| 3 | ** Built-in functions | 3 | ** Built-in functions |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -101,7 +101,7 @@ void luaB__ALERT (lua_State *L) { | |||
| 101 | */ | 101 | */ |
| 102 | void luaB__ERRORMESSAGE (lua_State *L) { | 102 | void luaB__ERRORMESSAGE (lua_State *L) { |
| 103 | lua_Object al; | 103 | lua_Object al; |
| 104 | lua_pushglobaltable(L); | 104 | lua_pushglobals(L); |
| 105 | lua_pushstring(L, LUA_ALERT); | 105 | lua_pushstring(L, LUA_ALERT); |
| 106 | al = lua_rawget(L); | 106 | al = lua_rawget(L); |
| 107 | if (lua_isfunction(L, al)) { /* avoid error loop if _ALERT is not defined */ | 107 | if (lua_isfunction(L, al)) { /* avoid error loop if _ALERT is not defined */ |
| @@ -206,9 +206,9 @@ void luaB_copytagmethods (lua_State *L) { | |||
| 206 | } | 206 | } |
| 207 | 207 | ||
| 208 | void luaB_globals (lua_State *L) { | 208 | void luaB_globals (lua_State *L) { |
| 209 | lua_pushglobaltable(L); | 209 | lua_pushglobals(L); |
| 210 | if (lua_getparam(L, 1) != LUA_NOOBJECT) | 210 | if (lua_getparam(L, 1) != LUA_NOOBJECT) |
| 211 | lua_setglobaltable(L, luaL_tablearg(L, 1)); | 211 | lua_setglobals(L, luaL_tablearg(L, 1)); |
| 212 | } | 212 | } |
| 213 | 213 | ||
| 214 | void luaB_rawget (lua_State *L) { | 214 | void luaB_rawget (lua_State *L) { |
