xsharp.eu • Compiler switch -az in source file
Page 1 of 1

Compiler switch -az in source file

Posted: Wed Feb 13, 2019 7:23 am
by SHirsch
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

Compiler switch -az in source file

Posted: Wed Feb 13, 2019 9:27 am
by robert
Stefan,

This is still on the todo list

Robert

Compiler switch -az in source file

Posted: Wed Feb 13, 2019 10:37 am
by SHirsch
Hi Robert,

ok, will keep it as separate lib until then.

Regards,
Stefan

Compiler switch -az in source file

Posted: Mon Mar 30, 2020 7:50 am
by SHirsch
Just for resolving this (because I searched it again).
Now it is possible:
#pragma options( "az", on )
....
#pragma options( "az", default )