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]

#pragma for defined class


Hi,
I'm having some issues with a setup with alot of include files in a
C++ project.  In trying to debug it, I want to try and print out
whether or not classes have been defined in header files yet.

Here's the idea:


class Point {

};


#ifndef Point #error Point #endif


clearly this doesn't work, becaus ePoint is a class and not a #define. Is there a command that can pick up on whether a class has been defined?

thanks,
wes


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