| USRP Hardware Driver and Device Manual Version: 4.10.0.0 UHD and USRP Manual |

Loading...
Searching...
No Matches
static.hpp
Go to the documentation of this file.
1//
2// Copyright 2010-2011 Ettus Research LLC
3// Copyright 2018 Ettus Research, a National Instruments Company
4//
5// SPDX-License-Identifier: GPL-3.0-or-later
6//
7
8#pragma once
9
10#include <uhd/config.hpp>
11
18#define UHD_SINGLETON_FCN(_t, _x) \
19 static _t& _x() \
20 { \
21 static _t _x; \
22 return _x; \
23 }
24
30#define UHD_STATIC_BLOCK(_x) \
31 void _x(void); \
32 static _uhd_static_fixture _x##_fixture(&_x, #_x); \
33 void _x(void)
34
36 struct UHD_API _uhd_static_fixture
37{
38 _uhd_static_fixture(void (*)(void), const char*);
39};
UHD_API
#define UHD_API
Definition config.h:87
config.hpp
_uhd_static_fixture::_uhd_static_fixture
_uhd_static_fixture(void(*)(void), const char *)