Constant Definition within Constant Definition in C -


i'm trying use constant definition in constant definition so:

#define address 5002 #define find "foundaddress address" 

but includes address in find constant when want constant find foundaddress 5002.

is there way this?

if don't mind changeing address string, can use preprocessor concatenation

#define address "5002" /* rather 5002 without quotes */ #define find "foundaddress " address 

the compiler see 2nd line as

#define find "foundaddress 5002" 

Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -