mirror of
https://github.com/lua/lua
synced 2026-09-26 16:17:11 +03:00
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:
parent
9eca305e75
commit
b56d4e570a
12 changed files with 79 additions and 98 deletions
|
|
@ -114,13 +114,11 @@ end
|
|||
|
||||
-- testing warnings
|
||||
T.testC([[
|
||||
warning "#This shold be a"
|
||||
warning " single "
|
||||
warning "warning
|
||||
"
|
||||
warning "#This should be "
|
||||
warning "another one
|
||||
"
|
||||
warningC "#This shold be a"
|
||||
warningC " single "
|
||||
warning "warning"
|
||||
warningC "#This should be "
|
||||
warning "another one"
|
||||
]])
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue