AusweisApp2
Initializer.h
gehe zur Dokumentation dieser Datei
1/*
2 * \brief Initializer to register a lambda that will be executed if QCoreApplication is ready.
3 *
4 * \copyright Copyright (c) 2017-2022 Governikus GmbH & Co. KG, Germany
5 */
6
7#pragma once
8
9#include <QCoreApplication>
10
11#define INIT_FUNCTION(pRegister)\
12 namespace {\
13 static void init_function(){\
14 qAddPreRoutine(pRegister);\
15 }\
16 Q_CONSTRUCTOR_FUNCTION(init_function)\
17 }