Re: about C program CPP macro

2013-12-10 Thread Atle Solbakken
Den 10. des. 2013 15:19, skrev Nicol TAO: 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; } Why do you need to #undef it first? Can you do without the #undef and use type

about C program CPP macro

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 know,