When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.
assert(exp)throws an exception if exp is null
OK. Have you tried it?
What do you expect to happen?
Who is going to catch it?
crash Code::Blocks !!!
local board = null;assert(board)
Codelocal board = null;assert(board)This exception should be recovered by "Code::Blocks" to notify the user ?
Welcome to the script console!> local board = null;> assert(board)AN ERROR HAS OCCURED [the index 'board' does not exist]CALLSTACK*FUNCTION [main()] ScriptConsole line [1]LOCALS[this] TABLEAN ERROR HAS OCCURED [the index 'board' does not exist]CALLSTACK*FUNCTION [main()] ScriptConsole line [1]LOCALS[this] TABLE