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
Post a Comment