conditional compilation

We encourage new members to introduce themselves here. Get to know one another and share your interests.
Post Reply
User avatar
softdevo@tiscali.it
Posts: 189
Joined: Wed Sep 30, 2015 1:30 pm

conditional compilation

Post by softdevo@tiscali.it »

sorry i have a memory gap:
how do you say:
if I satisfy this condition it compiles this piece of code,
if I satisfy other condition it compiles another piece of code.
Thank you
Danilo
User avatar
Chris
Posts: 4562
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

conditional compilation

Post by Chris »

Hi Danilo,

See the following, if you include the #define, then the first part will be compiled, otherwise the second:

#define something

#ifdef something
...
#else
...
#endif
Chris Pyrgas

XSharp Development Team test
chris(at)xsharp.eu
User avatar
softdevo@tiscali.it
Posts: 189
Joined: Wed Sep 30, 2015 1:30 pm

conditional compilation

Post by softdevo@tiscali.it »

Thank you, I didn't remember it anymore
Post Reply