Code: Select all
#if defined(MyInt) andalso MyInt > 10
#print "woooo"
#endif
- FBIDETEMP.bas(1) error 20: Type mismatch in '#if defined(MyInt) andalso MyInt > 10'
Code: Select all
#if defined(MyInt) andalso MyInt > 10
#print "woooo"
#endif
Code: Select all
#if defined(MyInt)
#If MyInt > 10
#print "woooo"
#EndIf ' MyInt > 10
#EndIf ' defined(MyInt)
Code: Select all
#If Defined(__FB_WIN32__) OrElse Defined(__FB_DOS__)
#Define LF ( Chr(13, 10) )
#Else
#Define LF ( Chr(10) )
#EndIf
Code: Select all
dim as integer ptr pBad = 0
if pBad andalso *pBad = 32 then print "ok" 'this would work fine
if pBad and *pBad = 32 then print "ok" 'this will crash as expected because it wont stop after the first condition fails