[CentOS] about C program of CPP macro problems

2013-12-10 Thread Nicol TAO
Hello, all: I have a program problem, ( may it not have close releationship with Debian), it described like this: I want to using #define / #undef, and want to put them in a single macro, some thing like: #define DECALRE_TYPE(type) \ { #undef __curr_type; #define _curr_type type; } as we

Re: [CentOS] about C program of CPP macro problems

2013-12-10 Thread Michael Hennebry
On Tue, 10 Dec 2013, Nicol TAO wrote: I want to using #define / #undef, and want to put them in a single macro, some thing like: #define DECALRE_TYPE(type) \ { #undef __curr_type; #define _curr_type type; } as we know, this can not passed with CPP, but I need this logical here. I think