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 4ec56630..f8e6a9b5 100644
--- a/liolib.c
+++ b/liolib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: liolib.c,v 1.61 2000/03/30 17:19:48 roberto Exp roberto $ 2** $Id: liolib.c,v 1.62 2000/04/24 21:05:11 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*/
@@ -537,7 +537,7 @@ static void errorfb (lua_State *L) {
537 char buff[MAXMESSAGE]; 537 char buff[MAXMESSAGE];
538 int level = 1; /* skip level 0 (it's this function) */ 538 int level = 1; /* skip level 0 (it's this function) */
539 lua_Debug ar; 539 lua_Debug ar;
540 lua_Object alertfunc = lua_rawgetglobal(L, "_ALERT"); 540 lua_Object alertfunc = lua_rawgetglobal(L, LUA_ALERT);
541 sprintf(buff, "error: %.200s\n", lua_getstring(L, lua_getparam(L, 1))); 541 sprintf(buff, "error: %.200s\n", lua_getstring(L, lua_getparam(L, 1)));
542 while (lua_getstack(L, level++, &ar)) { 542 while (lua_getstack(L, level++, &ar)) {
543 char buffchunk[60]; 543 char buffchunk[60];
@@ -585,7 +585,7 @@ static void errorfb (lua_State *L) {
585 585
586 586
587static const struct luaL_reg iolib[] = { 587static const struct luaL_reg iolib[] = {
588 {"_ERRORMESSAGE", errorfb}, 588 {LUA_ERRORMESSAGE, errorfb},
589 {"clock", io_clock}, 589 {"clock", io_clock},
590 {"date", io_date}, 590 {"date", io_date},
591 {"debug", io_debug}, 591 {"debug", io_debug},