GENERAL: USING DEFINE TO SPECIFY AN #INCLUDE FILE
Information in this article applies to:
I want to use the #include command with a filename that is specified with the compiler DEFINE directive. Is this possible? What is the correct syntax for the DEFINE directive?
Yes, this is possible, just use the following syntax in your C source code:
In µVision you may just enter under Options for Target - C51 - Define:
If you are using the compiler on the command line, you may write:
C51 source.c DEFINE(DATA_H="<filename.h>")
Last Reviewed: Saturday, May 1, 2004
of your data.