This forum is meant for questions and discussions about the X# language and tools
SHirsch
Posts: 286 Joined: Tue Jan 30, 2018 8:23 am
Location: Germany
Post
by SHirsch » Wed Feb 13, 2019 7:23 am
Hi,
I have a lib that has compiler switch -az set (use zero based arrays).
Now I would like to import the source files of this lib into a another lib. But there -az is not set.
Is it somehow possible to set compiler switches for files or parts of code?
Something like this
Code: Select all
#pragma compiler enable -az
... code with zero based arrays
#pragma compiler restore -az
Regards,
Stefan
robert
Posts: 4520 Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands
Post
by robert » Wed Feb 13, 2019 9:27 am
Stefan,
This is still on the todo list
Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
SHirsch
Posts: 286 Joined: Tue Jan 30, 2018 8:23 am
Location: Germany
Post
by SHirsch » Wed Feb 13, 2019 10:37 am
Hi Robert,
ok, will keep it as separate lib until then.
Regards,
Stefan
SHirsch
Posts: 286 Joined: Tue Jan 30, 2018 8:23 am
Location: Germany
Post
by SHirsch » Mon Mar 30, 2020 7:50 am
Just for resolving this (because I searched it again).
Now it is possible:
#pragma options( "az", on )
....
#pragma options( "az", default )