summaryrefslogtreecommitdiff
path: root/testes/api.lua
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 /testes/api.lua
parent9eca305e75010e30342486a4139846faf1b3eccb (diff)
downloadlua-github-b56d4e570a60a8e84df8288c3122eb5bb5c20af6.tar.gz
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 'testes/api.lua')
-rw-r--r--testes/api.lua12
1 files changed, 5 insertions, 7 deletions
diff --git a/testes/api.lua b/testes/api.lua
index d034ea80..08672e8a 100644
--- a/testes/api.lua
+++ b/testes/api.lua
@@ -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"
]])