This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]