how to distinquish compiler in source

This forum is meant for questions and discussions about the X# language and tools
Post Reply
User avatar
Otto
Posts: 174
Joined: Wed Sep 30, 2015 6:22 pm

how to distinquish compiler in source

Post by Otto »

Can I runtime see what compiler is used?

I'm afraid I'm mixing Vulcan and XSharp in a way I don't want and want to be able to see that runtime (during my tests).

Because I also have C# projects that call those projects, I don't want to change the names of the dll's (but that would probably be the better solution... hm. need to ponder about that...)
Frank Maraite
Posts: 178
Joined: Sat Dec 05, 2015 10:44 am
Location: Germany

how to distinquish compiler in source

Post by Frank Maraite »

Otto,

in X# there are some compiler macros that show the dialect, for example __DIALECT_CORE__ . Check them.
Hope this helps a little bit.

Frank
User avatar
robert
Posts: 4518
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

how to distinquish compiler in source

Post by robert »

Otto,

You can use predefined macros
__XSHARP__ TRUE for XSharp
__VERSION__ Version Number as string
__DIALECT__ The dialect name as string
__DIALECT_CORE__ Defined TRUE when dialect = Core
__DIALECT_VO__ Defined TRUE when dialect = Vo
__DIALECT_VULCAN__ Defined TRUE when dialect = Vulcan

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
User avatar
Otto
Posts: 174
Joined: Wed Sep 30, 2015 6:22 pm

how to distinquish compiler in source

Post by Otto »

Robert, Frank,

Thanks, this helped me a lot!

Regards,
Otto
Post Reply