|
|
On Tue, 22 Apr 2003 10:55:51 +0200, Christoph Hormann
<chr### [at] gmxde> wrote:
>I recently experienced the same problem and i think you can't. File
>handles are different from other identifiers.
Then why can I #undef, #ifdef and #ifndef them? I mean, sure they are
not normal identifiers, you can't assign to them etc. but the fact
that you can't pass them to macros looks to me like an overlooking and
not a design feature.
The docs don't mention it anywhere. What they say is that a macro
parameter is either an RVALUE or an identifier. However, a file handle
*is* in a way an identifier as it a) uniquely identifies a file and b)
you can #ifdef, #ifndef and #undef it. So why the limitation?
Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] vipbg
TAG e-mail : pet### [at] tagpovrayorg
Post a reply to this message
|
|