This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
usage of define func() as (void)0
- From: "Ming-Chia Jiang" <jmc at wire dot cs dot nthu dot edu dot tw>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 21 Oct 2004 22:25:45 +0800
- Subject: usage of define func() as (void)0
Hi folks,
I observed sometimes macros are writen as:
#define xxx() (void)0
Then, xxx() is called in some place of code.
What is the real meaning of doing this? To define xxx() as (void)0.
And under what conditions would people use this??
Thanks & best regards
Ming-Chia