Added a warning system to Lua
The warning system is just a way for Lua to emit warnings, messages to the programmer that do not interfere with the running program.
This commit is contained in:
@@ -111,6 +111,20 @@ do -- testing 'rotate'
|
||||
tcheck(t, {10, 20, 30, 40})
|
||||
end
|
||||
|
||||
|
||||
-- testing warnings
|
||||
T.testC([[
|
||||
warning "*This "
|
||||
warning "warning "
|
||||
warning "should be in a"
|
||||
warning " single line
|
||||
"
|
||||
warning "*This should be "
|
||||
warning "another warning
|
||||
"
|
||||
]])
|
||||
|
||||
|
||||
-- testing message handlers
|
||||
do
|
||||
local f = T.makeCfunc[[
|
||||
|
||||
Reference in New Issue
Block a user