aboutsummaryrefslogtreecommitdiff
path: root/lbaselib.c
diff options
context:
space:
mode:
Diffstat (limited to 'lbaselib.c')
-rw-r--r--lbaselib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lbaselib.c b/lbaselib.c
index 6105af56..13739a92 100644
--- a/lbaselib.c
+++ b/lbaselib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lbaselib.c,v 1.79 2002/06/06 12:39:48 roberto Exp roberto $ 2** $Id: lbaselib.c,v 1.80 2002/06/13 13:39:55 roberto Exp roberto $
3** Basic library 3** Basic library
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -34,7 +34,7 @@ static int luaB_print (lua_State *L) {
34 const char *s; 34 const char *s;
35 lua_pushvalue(L, -1); /* function to be called */ 35 lua_pushvalue(L, -1); /* function to be called */
36 lua_pushvalue(L, i); /* value to print */ 36 lua_pushvalue(L, i); /* value to print */
37 lua_rawcall(L, 1, 1); 37 lua_upcall(L, 1, 1);
38 s = lua_tostring(L, -1); /* get result */ 38 s = lua_tostring(L, -1); /* get result */
39 if (s == NULL) 39 if (s == NULL)
40 return luaL_verror(L, "`tostring' must return a string to `print'"); 40 return luaL_verror(L, "`tostring' must return a string to `print'");
@@ -378,7 +378,7 @@ static int luaB_require (lua_State *L) {
378 } 378 }
379 switch (status) { 379 switch (status) {
380 case 0: { 380 case 0: {
381 lua_rawcall(L, 0, 0); /* run loaded module */ 381 lua_upcall(L, 0, 0); /* run loaded module */
382 lua_pushvalue(L, 1); 382 lua_pushvalue(L, 1);
383 lua_pushboolean(L, 1); 383 lua_pushboolean(L, 1);
384 lua_settable(L, 2); /* mark it as loaded */ 384 lua_settable(L, 2); /* mark it as loaded */