USRP Hardware Driver and USRP Manual  Version: 3.11.0.HEAD-0-gdca39145
UHD and USRP Manual
static.hpp
Go to the documentation of this file.
1 //
2 // Copyright 2010-2011 Ettus Research LLC
3 //
4 // SPDX-License-Identifier: GPL-3.0
5 //
6 
7 #ifndef INCLUDED_UHD_UTILS_STATIC_HPP
8 #define INCLUDED_UHD_UTILS_STATIC_HPP
9 
10 #include <uhd/config.hpp>
11 
18 #define UHD_SINGLETON_FCN(_t, _x) static _t &_x(){static _t _x; return _x;}
19 
25 #define UHD_STATIC_BLOCK(_x) \
26  void _x(void); \
27  static _uhd_static_fixture _x##_fixture(&_x, #_x); \
28  void _x(void)
29 
32  _uhd_static_fixture(void (*)(void), const char *);
33 };
34 
35 #endif /* INCLUDED_UHD_UTILS_STATIC_HPP */
Helper for static block, constructor calls function.
Definition: static.hpp:31
#define UHD_API
Definition: config.h:62