#define RECWR(recP, type, field, value) OffsetOf(type,
field)
#define RECWRS(recP, type, field) RECWR(recP, type,
field, field)
main func(){
// RECWR(recP, UField, offset, offset); // OK
RECWRS(recP, UField, offset);
}
---
Hangs during compile and requires reset.
Logged In: YES
user_id=969565
I've seen this problem too, and here is my two cents:
it actually happens only when a formal parameter has the
*same name* in outer and inner defines, as is the case with
'type' and 'field' parameters in the example above.
The workaround is to rename parameters, e.g.:
#define RECWR(recP, type, field, value) OffsetOf(type,
field)
#define RECWRS(recP, _type, _field) RECWR(recP, _type,
_field, _field)
Logged In: YES
user_id=574706
Originator: NO
I seccond this! Please fix it as soon as possible!
/John
Logged In: YES
user_id=574706
Originator: NO
Steve, what do you say about this BUG?