we were just messing a bit around in the german purebasic forum,
and found SUDDENLY this .. comic.. mistake..
watch the amount of compilerendif / compilerif - s..
Code: Select all
Macro If_Home_is_defined
  CompilerIf ((~Defined(home,#PB_Constant)) & %00000001)
EndMacro 
Macro then_write_hello
  Debug "hallo"
EndMacro 
Macro and_go_Home
   CompilerEndIf 
EndMacro 
; ------------------------------------------------------------
; ----DELETE THIS CONSTANT to see the MIRACLE --------------
; ------------------------------------------------------------
#home = 1
; ----
If_Home_is_defined
then_write_hello
and_go_Home
CompilerEndIfbug or not?
 
 merry christmas and a happy new year
-walker
on purebasic 4.51 *86 windows 7 etc..





