mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 19:02:59 +00:00
assume Q_CONSTRUCTOR_FUNCTION() and Q_DESTRUCTOR_FUNCTION() are not defined
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
bb86fbb475
commit
b2da96b9ea
1 changed files with 2 additions and 8 deletions
|
@ -360,21 +360,15 @@ QT_USE_NAMESPACE
|
|||
#define Q_NULLPTR nullptr
|
||||
#define Q_DECL_CONSTEXPR constexpr
|
||||
|
||||
#ifndef Q_CONSTRUCTOR_FUNCTION
|
||||
# define Q_CONSTRUCTOR_FUNCTION0(AFUNC) \
|
||||
#define Q_CONSTRUCTOR_FUNCTION(AFUNC) \
|
||||
static const int AFUNC ## __init_variable__ = AFUNC();
|
||||
# define Q_CONSTRUCTOR_FUNCTION(AFUNC) Q_CONSTRUCTOR_FUNCTION0(AFUNC)
|
||||
#endif
|
||||
|
||||
#ifndef Q_DESTRUCTOR_FUNCTION
|
||||
# define Q_DESTRUCTOR_FUNCTION0(AFUNC) \
|
||||
#define Q_DESTRUCTOR_FUNCTION(AFUNC) \
|
||||
class AFUNC ## __dest_class__ { \
|
||||
public: \
|
||||
inline AFUNC ## __dest_class__() { } \
|
||||
inline ~ AFUNC ## __dest_class__() { AFUNC(); } \
|
||||
} AFUNC ## __dest_instance__;
|
||||
# define Q_DESTRUCTOR_FUNCTION(AFUNC) Q_DESTRUCTOR_FUNCTION0(AFUNC)
|
||||
#endif
|
||||
|
||||
/*
|
||||
The window system, must be one of: (Q_WS_x)
|
||||
|
|
Loading…
Add table
Reference in a new issue