Wrong folding with CompilerIf in Procedure declaration
Posted: Thu Jan 07, 2016 4:38 pm
http://www.purebasic.com
http://forums.purebasic.com/english/
Code: Select all
Macro ProcedureName_Body()
If((a + b) % 2 = 0)
Debug "Sum is even!"
Else
Debug "Sum isn't even! :("
EndIf
EndMacro
CompilerIf #PB_Compiler_OS = #PB_OS_Windows
Procedure ProcedureName(a.i, b.i)
ProcedureName_Body()
EndProcedure
CompilerElse
ProcedureC ProcedureName(a.i, b.i)
ProcedureName_Body()
EndProcedure
CompilerEndIf
ProcedureName(10, 3)