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.
This commit is contained in:
@@ -45,7 +45,7 @@ static int luaB_print (lua_State *L) {
|
||||
|
||||
static int luaB_warn (lua_State *L) {
|
||||
const char *msg = luaL_checkstring(L, 1);
|
||||
lua_warning(L, msg);
|
||||
lua_warning(L, msg, lua_toboolean(L, 2));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user