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.
#ifdef
-
- Master
- Posts: 104
- Joined: Fri Jun 14, 2019 11:05 pm
- Reputation: 0
- Location: Goslar, Germany
- Status: Offline
- Contact:
Re: #ifdef
You can use __VMS, see
$ help cc Language_topics Predefined_Macros System_Identification_Macros
$ help cc Language_topics Predefined_Macros System_Identification_Macros
There is something wrong with everything that is popular.
(Charles Fort)
(Charles Fort)
-
- VSI Expert
- Master
- Posts: 101
- Joined: Thu Aug 22, 2019 12:17 am
- Reputation: 0
- Status: Offline
Re: #ifdef
No, but You can do it via MMS.
-
Topic author - Valued Contributor
- Posts: 62
- Joined: Sun Jun 16, 2019 7:55 am
- Reputation: 6
- Location: Zurich
- Status: Offline
- Contact:
Re: #ifdef
If I do via MMS, VS Code won't know about it though.
Added in 3 minutes 27 seconds:
Thanks!