search for: _curr_type

Displaying 1 result from an estimated 1 matches for "_curr_type".

Did you mean: __curr_type
2013 Dec 10
1
about C program of CPP macro problems
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, this can not passed with CPP, but I need this logical here. Generally, the problem comes from #define ser_field(type, var) \ ser_new_field(tra, #type, #var, offsetof(struct_type, var)) I do not want another additional parameter in this macro like #d...