This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Defining C Preprocessor Constants in A51

Does anyone know a way to define C preprocessor comments at the command line for A51? For example, in C I would do something like:

C51 foo.c DEFINE(SOME_CONST)

but the "DEFINE" directive does not work in A51. In addition, the C preprocessor in A51 does not recognize constants declared with the "SET" directive as C defined constants. In other words, if I do:

A51 foo.a51 SET(SOME_CONST=1)

and then I have the following line in my assembly file:

#ifdef SOME_CONST

the expression will be interpreted as being false.

Thanks!

0