From b56d4e570a60a8e84df8288c3122eb5bb5c20af6 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 14 Mar 2019 15:30:54 -0300 Subject: 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. --- testes/api.lua | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'testes/api.lua') 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" ]]) -- cgit v1.2.3-55-g6feb