Loading...
Searching...
No Matches
static.hpp
Go to the documentation of this file.
//
// Copyright 2010-2011 Ettus Research LLC
// Copyright 2018 Ettus Research, a National Instruments Company
//
// SPDX-License-Identifier: GPL-3.0-or-later
//
#pragma once
#include <uhd/config.hpp>
#define UHD_SINGLETON_FCN(_t, _x) \
static _t& _x() \
{ \
static _t _x; \
return _x; \
}
#define UHD_STATIC_BLOCK(_x) \
void _x(void); \
static _uhd_static_fixture _x##_fixture(&_x, #_x); \
void _x(void)
struct UHD_API _uhd_static_fixture
{
_uhd_static_fixture(void (*)(void), const char*);
};
UHD_API
#define UHD_API
Definition config.h:87
config.hpp
_uhd_static_fixture::_uhd_static_fixture
_uhd_static_fixture(void(*)(void), const char *)