fbpx
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: how to distinquish compiler in source

how to distinquish compiler in source 2 years 3 months ago #1354

  Otto's Avatar Topic Author Otto Offline Posts: 141
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...)

Please Log in or Create an account to join the conversation.

how to distinquish compiler in source 2 years 3 months ago #1355

  Frank Maraite's Avatar Frank Maraite Offline Posts: 172
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

Please Log in or Create an account to join the conversation.

how to distinquish compiler in source 2 years 3 months ago #1364

  robert's Avatar robert Offline Posts: 969
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
This email address is being protected from spambots. You need JavaScript enabled to view it.

Please Log in or Create an account to join the conversation.

how to distinquish compiler in source 2 years 3 months ago #1366

  Otto's Avatar Topic Author Otto Offline Posts: 141
Robert, Frank,

Thanks, this helped me a lot!

Regards,
Otto

Please Log in or Create an account to join the conversation.

  • Page:
  • 1