I guess what I'm trying to say is that a global replacement macro (like abc)
shouldn't depend on how the tokens came into existence, whether they were
typed in or the result of preprocessing.
Here's a variant of my original sample that works as expected:
#define append_c(X) X##c
#define pr
Package: cpp-4.4
Version: 4.4.4-6
Severity: normal
Here's an example
#define appendc(x) x##c
#define aXc(X) appendc(a##X)
#define abc appendc(abb)
int aXc(b) = 0; // appendc(ab) -> abc -> appendc(abb) -> abbc
int main(int argc, char *argv[])
{
return abbc;
}
2 matches
Mail list logo