Bernard Leclerc (bleclerc++at++cae.ca)
Thu, 15 May 1997 14:22:17 -0400
> Hi,
> In Performer code, sometimes I will see code segment like:
>
> (channel, data);
> pfCull();
>
> or simply:
>
> (data);
>
> Where "data" is type - void, and "channel" is type - pfChannel.
> What do they mean, and what do they do?
> Thank you in advance!
Here is a trivial answer to your question: these code segments you refer to
will simply prevent the compiler from warning you about unused variables.
Instead of this trick, I'm using "CC -woff 3262" to turn that warning off.
And in case you're interested in knowing what these statements do... well,
they simply do nothing. Basically, "(channel, data)" will evaluate the two
pointers to see if they're null or not. Then nothing will be done with the
result. You can thing of it as the equivalent to the assembler NOP statement.
Bernard Leclerc, Technical Leader, 3-D Graphics Applications
CAE Electronics Ltd. (http://www.cae.ca)
8585 Cote De Liesse, Saint-Laurent, Quebec, Canada, H4L-4X4
tel: +1 514 341 2000 extension 2275, fax: +1 514 340 5496
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:55:14 PDT