User forums > Embedded development
script wizard and assert()
LETARTARE:
hello,
in the Squirrel 3.0 reference manuel found :
--- Quote ---assert(exp)
throws an exception if exp is null
--- End quote ---
is that this function is available in the wizard scripts ?
if not, how to raise an exception in a wizard script?
thank you.
oBFusCATed:
As far as I know we're still using squirrel 2.x, so you have to check its manual.
LETARTARE:
thank you for the answer.
Squirrel 2.2 is identical ...
--- Quote ---assert(exp)
throws an exception if exp is null
--- End quote ---
oBFusCATed:
OK. Have you tried it?
What do you expect to happen?
Who is going to catch it?
LETARTARE:
--- Quote ---OK. Have you tried it?
--- End quote ---
yes with my configuration
--- Quote ---What do you expect to happen?
--- End quote ---
crash Code::Blocks !!!
--- Quote ---Who is going to catch it?
--- End quote ---
I do not know, this is why I ask questions?
Navigation
[0] Message Index
[#] Next page
Go to full version