Re: empty parameterized macro
- From: Hallvard B Furuseth <h.b.furuseth@xxxxxxxxxxx>
- Date: Tue, 28 Nov 2006 11:31:08 +0100
aegis writes:
Hallvard B Furuseth wrote:
John Goche writes:
I would like to know whether there is any difference between
the macro
#define FOO
and the parameterized macro taking no parameters
#define FOO()
Is that even allowed under c89?
If so, chapter and verse please.
Huh? Why not? Ever head of systems where getchar() is a macro?
Look up chapter and verse yourself if you think it's not allowed.
The grammar is something like
# define identifier(identifier-list<opt>) replacement-list new-line
Note the <opt> (optional).
--
Hallvard
.
- References:
- empty parameterized macro
- From: John Goche
- Re: empty parameterized macro
- From: Hallvard B Furuseth
- Re: empty parameterized macro
- From: aegis
- empty parameterized macro
- Prev by Date: Re: removing newline character from the buffer read by fgets
- Next by Date: [OT] Re: Reading a string of unknown size
- Previous by thread: Re: empty parameterized macro
- Next by thread: enable/disable device using device id..
- Index(es):
Relevant Pages
|
|