Does the Fantom compiler support conditional preprocessing?
I would like to do something like
#if DEBUG echo( "In debug" ) #elif RELEASE log.info( "We are up and running!" ) #endif
Thanks
Nope, there is no pre-processor.
However if you use an if statement with a true/false literal, then the compiler will omit the block since it can be determined at compile time.
Okay. Thanks Brian
Login or Signup to reply.
Dan B Wed 1 Jul 2020
Does the Fantom compiler support conditional preprocessing?
I would like to do something like
Thanks
brian Wed 1 Jul 2020
Nope, there is no pre-processor.
However if you use an if statement with a true/false literal, then the compiler will omit the block since it can be determined at compile time.
Dan B Wed 1 Jul 2020
Okay. Thanks Brian