This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
#pragma for defined class
- From: "Wesley Smith" <wesley dot hoke at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 6 Sep 2006 11:27:59 -0700
- Subject: #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