9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] USED() macro
@ 2005-11-12 10:00 李微
  2005-11-12 11:18 ` Charles Forsyth
  0 siblings, 1 reply; 5+ messages in thread
From: 李微 @ 2005-11-12 10:00 UTC (permalink / raw)
  To: 9fans

In plan9port, USED() is defined as

        #define USED(x) if(x){}else{}

Does it mean that USED() can only be applied on variables of "scalar
types"? But r is of a struct type in

        void
        drawresizewindow(Rectangle r)
        {
        	USED(r);
        	
        	bad();
        }

in $PLAN9/src/libdraw/nowsys-wsys.c.

When compiling, 9c complains on that. A bug? Or an extension of Plan 9's
C dialect?




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-11-12 16:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-12 10:00 [9fans] USED() macro 李微
2005-11-12 11:18 ` Charles Forsyth
2005-11-12 13:17   ` Russ Cox
2005-11-12 14:42     ` 李微
2005-11-12 16:37       ` Russ Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).