Cleaned up the preprocessor definitions.

This commit is contained in:
Andrzej Kapolka 2014-03-16 18:04:37 -07:00
parent b21247ca67
commit 95410d2b66

View file

@ -502,13 +502,8 @@ public:
#define REGISTER_SIMPLE_TYPE_STREAMER(x) static int x##Streamer = \
Bitstream::registerTypeStreamer(QMetaType::type(#x), new SimpleTypeStreamer<x>());
#ifdef WIN32
#define _Pragma __pragma
#endif
/// Declares the metatype and the streaming operators. The last lines
/// ensure that the generated file will be included in the link phase.
#define STRINGIFY(x) #x
#ifdef _WIN32
#define DECLARE_STREAMABLE_METATYPE(X) Q_DECLARE_METATYPE(X) \
Bitstream& operator<<(Bitstream& out, const X& obj); \