[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[News.eclipse.dsdp.mtj] Re: Preprocessor question: defined value substitution
|
Looking at the antenna preprocessor source code I have found something and I've tested it. Its something limited, but works.
You will define your symbol somewhere
//#define ROWS = 10
And to recover its value and assing it:
int Rows;
//#expand Rows = %ROWS%;
That has its limitations, as you cannot do things like:
CreateRows( #expand %ROWS% );
But instead you have to do:
int Rows;
//#expand Rows = %ROWS%;
CreateRows( #expand %ROWS% );
Anyone has gone deep in the preprocessor? Maybe I'll try the antenna documentation, now that I remember.