aboutsummaryrefslogtreecommitdiff
path: root/liolib.c
diff options
context:
space:
mode:
Diffstat (limited to 'liolib.c')
-rw-r--r--liolib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/liolib.c b/liolib.c
index 379a8ca7..5325dc4c 100644
--- a/liolib.c
+++ b/liolib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: liolib.c,v 1.107 2001/02/22 17:15:18 roberto Exp roberto $ 2** $Id: liolib.c,v 1.108 2001/02/23 17:17:25 roberto Exp roberto $
3** Standard I/O (and system) library 3** Standard I/O (and system) library
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -638,7 +638,7 @@ static int errorfb (lua_State *L) {
638 luaL_addstring(&b, l_s("\n")); 638 luaL_addstring(&b, l_s("\n"));
639 } 639 }
640 luaL_pushresult(&b); 640 luaL_pushresult(&b);
641 lua_getglobal(L, l_s(LUA_ALERT)); 641 lua_getglobal(L, LUA_ALERT);
642 if (lua_isfunction(L, -1)) { /* avoid loop if _ALERT is not defined */ 642 if (lua_isfunction(L, -1)) { /* avoid loop if _ALERT is not defined */
643 lua_pushvalue(L, -2); /* error message */ 643 lua_pushvalue(L, -2); /* error message */
644 lua_rawcall(L, 1, 0); 644 lua_rawcall(L, 1, 0);
@@ -671,7 +671,7 @@ static const luaL_reg iolib[] = {
671 {l_s("tmpname"), io_tmpname}, 671 {l_s("tmpname"), io_tmpname},
672 {l_s("write"), io_write}, 672 {l_s("write"), io_write},
673 {l_s("writeto"), io_writeto}, 673 {l_s("writeto"), io_writeto},
674 {l_s(LUA_ERRORMESSAGE), errorfb} 674 {LUA_ERRORMESSAGE, errorfb}
675}; 675};
676 676
677 677