summaryrefslogtreecommitdiff
path: root/lbaselib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-03-14 15:30:54 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-03-14 15:30:54 -0300
commitb56d4e570a60a8e84df8288c3122eb5bb5c20af6 (patch)
treed5597a7865712fc407adbb41fe0749e728617ca7 /lbaselib.c
parent9eca305e75010e30342486a4139846faf1b3eccb (diff)
downloadlua-b56d4e570a60a8e84df8288c3122eb5bb5c20af6.tar.gz
lua-b56d4e570a60a8e84df8288c3122eb5bb5c20af6.tar.bz2
lua-b56d4e570a60a8e84df8288c3122eb5bb5c20af6.zip
Changes in the warning system
- The warning functions get an extra parameter that tells whether message is to be continued (instead of using end-of-lines as a signal). - The user data for the warning function is a regular value, instead of a writable slot inside the Lua state.
Diffstat (limited to 'lbaselib.c')
-rw-r--r--lbaselib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lbaselib.c b/lbaselib.c
index 26683a1d..d4b619a5 100644
--- a/lbaselib.c
+++ b/lbaselib.c
@@ -45,7 +45,7 @@ static int luaB_print (lua_State *L) {
45 45
46static int luaB_warn (lua_State *L) { 46static int luaB_warn (lua_State *L) {
47 const char *msg = luaL_checkstring(L, 1); 47 const char *msg = luaL_checkstring(L, 1);
48 lua_warning(L, msg); 48 lua_warning(L, msg, lua_toboolean(L, 2));
49 return 0; 49 return 0;
50} 50}
51 51