|
Krita Source Code Documentation
|
Go to the source code of this file.
Macros | |
| #define | CONCAT(a, b) CONCAT_IMPL(a, b) |
| #define | CONCAT_IMPL(a, b) a ## b |
| #define | KIS_DECLARE_STATIC_INITIALIZER KIS_DECLARE_STATIC_INITIALIZER_IMPL(__COUNTER__) |
| #define | KIS_DECLARE_STATIC_INITIALIZER_IMPL(uniqueId) |
| #define CONCAT | ( | a, | |
| b ) CONCAT_IMPL(a, b) |
Definition at line 10 of file KisStaticInitializer.h.
| #define CONCAT_IMPL | ( | a, | |
| b ) a ## b |
Definition at line 11 of file KisStaticInitializer.h.
| #define KIS_DECLARE_STATIC_INITIALIZER KIS_DECLARE_STATIC_INITIALIZER_IMPL(__COUNTER__) |
Sometimes we need to declare a static object that performs some actions on Krita loading, e.g. to register Qt's metatype for a Krita type. This macro helps with that:
KIS_DECLARE_STATIC_INITIALIZER { qRegisterMetaType<KoResourceSP>("KoResourceSP"); }
Definition at line 38 of file KisStaticInitializer.h.
| #define KIS_DECLARE_STATIC_INITIALIZER_IMPL | ( | uniqueId | ) |
Definition at line 14 of file KisStaticInitializer.h.