Trying to override loadimage.

BlitzMax Forums/BlitzMax Beginners Area/Trying to override loadimage.

"Assert only exists in debug (it would be a bad performance hit)"

How in the hell is "throwing a runtime error if the condition is false" going to cause a performance hit?

All it is doing is the same thing as my IF statement!

According to the help file this is what it should be doing:

Function Assert(Condition%, Error$)
   If Condition = False Then RuntimeError(Error$)
End Function