Page 1 of 1

#ifdef

Posted: Mon Aug 26, 2019 8:19 am
by ajbrehm
Can I set a #define in a VMS IDE project? I am currently using __ALPHA to mark code specific to VMS (and _WIN64 to mark code specific to Windows).

However, if in future I'll compile for Itanium and x64 as well (and to avoid confusion with Windows targets) I'd prefer an architecture-agnostic VMS define.

Re: #ifdef

Posted: Mon Aug 26, 2019 9:11 am
by martinv
You can use __VMS, see
$ help cc Language_topics Predefined_Macros System_Identification_Macros

Re: #ifdef

Posted: Mon Aug 26, 2019 11:44 pm
by sergey_vorfolomeev
No, but You can do it via MMS.

Re: #ifdef

Posted: Tue Aug 27, 2019 3:10 am
by ajbrehm
sergey_vorfolomeev wrote:
Mon Aug 26, 2019 11:44 pm
No, but You can do it via MMS.
If I do via MMS, VS Code won't know about it though.

Added in 3 minutes 27 seconds:
martinv wrote:
Mon Aug 26, 2019 9:11 am
You can use __VMS, see
$ help cc Language_topics Predefined_Macros System_Identification_Macros
Thanks!