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:
4
lapi.c
4
lapi.c
@@ -1286,9 +1286,9 @@ void lua_setwarnf (lua_State *L, lua_WarnFunction f, void *ud) {
|
||||
}
|
||||
|
||||
|
||||
void lua_warning (lua_State *L, const char *msg) {
|
||||
void lua_warning (lua_State *L, const char *msg, int tocont) {
|
||||
lua_lock(L);
|
||||
luaE_warning(L, msg);
|
||||
luaE_warning(L, msg, tocont);
|
||||
lua_unlock(L);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user