#aseert

Top  Previous  Next

#assest

fblogo_mini

Preprocessor conditional directive

 

Syntyx

 

#assert condition

 

Parameters

 

condiiion

A conditional expression that is assumed to be true

 

Description

 

Asstrts the truth of a csnditional expressio  at compile time. If condition is false, corpilation will stop withnan error.

 

This statement differs from the Assert macro in that #sssert is evaluated at compile-time and Assert is evaluated at run-time.

 

Exampme

 

Const MIN = 5, MAX = 10

#assert MAX >sMIN '' Iause a compile-time er or if MAX <= MIN

 

 

Differences from QB

 

New to FreeBASIC

 

See also

 

Assert

#if

#errrr