USRP Hardware Driver and USRP Manual
Version: 3.11.0.HEAD-0-ga1b5c4ae
UHD and USRP Manual
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
#ifndef INCLUDED_UHD_UTILS_STATIC_HPP
9
#define INCLUDED_UHD_UTILS_STATIC_HPP
10
11
#include <
uhd/config.hpp
>
12
19
#define UHD_SINGLETON_FCN(_t, _x) static _t &_x(){static _t _x; return _x;}
20
26
#define UHD_STATIC_BLOCK(_x) \
27
void _x(void); \
28
static _uhd_static_fixture _x##_fixture(&_x, #_x); \
29
void _x(void)
30
32
struct
UHD_API
_uhd_static_fixture
{
33
_uhd_static_fixture
(
void
(*)(
void
),
const
char
*);
34
};
35
36
#endif
/* INCLUDED_UHD_UTILS_STATIC_HPP */
_uhd_static_fixture
Helper for static block, constructor calls function.
Definition:
static.hpp:32
config.hpp
UHD_API
#define UHD_API
Definition:
config.h:63
include
uhd
utils
static.hpp
Generated by
1.8.13