Rocket D3 | mvBase

 View Only

 Compiler Directives

Nivethan Thiyagarajah's profile image
PARTNER Nivethan Thiyagarajah posted 06-10-2022 08:37
I'm trying to conditionally compile some code but I can't seem to get the IFDEF to work.

This is the source code below, I would expect to see 'Not defined.' but running the program results in 'Defined' being printed. This D3 10.2.2 on Windows if that helps.

*
$IFDEF PLATFORM.D3
PRINT 'Defined.'
$ELSE
PRINT 'Not defined.'
$ENDIF
*
PRINT 'Always print'

Thank you
Brian Cram's profile image
ROCKETEER Brian Cram
I believe that stuff was added in 10.3, but I'll check.
Nivethan Thiyagarajah's profile image
PARTNER Nivethan Thiyagarajah
You are correct, 10.3 seems to work as expected.

Thanks!