mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
git ls-files -z \ |grep -zEe '^lib/' \ |grep -zEe '\.[ch]pp$' \ |xargs -0 perl -p0i -e 's/\n*(?!(?:.|\n))/\n/'
13 lines
297 B
C++
13 lines
297 B
C++
/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
|
|
|
|
#include "base/initialize.hpp"
|
|
#include "base/loader.hpp"
|
|
|
|
using namespace icinga;
|
|
|
|
bool icinga::InitializeOnceHelper(const std::function<void()>& func, InitializePriority priority)
|
|
{
|
|
Loader::AddDeferredInitializer(func, priority);
|
|
return true;
|
|
}
|