Re: Macro redefinition
- From: Tor Rustad <tor_rustad@xxxxxxxxxxx>
- Date: Fri, 31 Aug 2007 20:55:04 +0200
Dave Hansen wrote:
<snip>
My question is simply, is the above C code allowed?
It's a pretty common idiom in the code I work with. One caveat: don't
forget to #undef EXPAND_DEF before redefining it.
Is really the #undef needed in this case? This is a function-like macro, and the re-definition had identical argument list.
--
Tor <torust [at] online [dot] no>
.
- Follow-Ups:
- Re: Macro redefinition
- From: Keith Thompson
- Re: Macro redefinition
- References:
- Macro redefinition
- From: Tor Rustad
- Re: Macro redefinition
- From: Dave Hansen
- Macro redefinition
- Prev by Date: Re: Macro redefinition
- Next by Date: Re: Macro redefinition
- Previous by thread: Re: Macro redefinition
- Next by thread: Re: Macro redefinition
- Index(es):
Relevant Pages
|