To solve this issue I have to provide a new configuration file. This patch should should solve your issue "#if 1 not supported ".
Please check the attached file with your virus scanner before you use it to replace the one with the same name in the bin folder of your Moritz distribution.
Replace with the attached file "ANSI_C_Expression.a2x" the one with the same name in your Moritz distribution sub folder "[MoritzRoot]\LangPack\ansi_c\a2x\".
It may be useful to keep the old files for the case that the new ones are not satisfying you.
Note this patch was created for the newest Moritz patch published on 2020-12-23 and was not tested with older versions.
However, the further fixing of bug is done based on the last patch only.
So if you face additional issues related to this topic please update your Moritz release by using the patch as described in the readme.
The patch, I provide here, is extending the syntax-rule used by the directive process to detect identifiers.
A number like your 1 is now treated by this process as an ID like MY_PREPROCESSOR_CONSTANT.
This may not be the ideal solution. But it is one that was done by modifying a configuration text and not a binary. Thus I hope that it supports you even your IT department rejects your request to provide you the binaries you need as patch.
Depending on the content of your compiler-switch you may have to define the boolean meaning of the numerical identifier.
Please refer the following parts of the Moritz documentation to get an overview if necessary:
User-Configuration of abc2xml especially its section Configuring Preprocessor-Constants in the section DirectiveDefinition
Hello Wasili.
To solve this issue I have to provide a new configuration file. This patch should should solve your issue "#if 1 not supported ".
Note this patch was created for the newest Moritz patch published on 2020-12-23 and was not tested with older versions.
The patch, I provide here, is extending the syntax-rule used by the directive process to detect identifiers.
Please refer the following parts of the Moritz documentation to get an overview if necessary:
The background is explained in the MuLanPa Documentaion.
Please check this patch and respond with a comment if your issue is solved or not.
Have a merry Christmas and a happy new year.
Stay healthy,
Eckard.
Thanks Eckard, I tested it and it works