|
UHD
003.005.003-781-g91040b6f
|
#include <uhd/config.hpp>Go to the source code of this file.
Classes | |
| struct | _uhd_static_fixture |
| Helper for static block, constructor calls function. More... | |
Defines | |
| #define | UHD_SINGLETON_FCN(_t, _x) static _t &_x(){static _t _x; return _x;} |
| #define | UHD_STATIC_BLOCK(_x) |
| #define UHD_SINGLETON_FCN | ( | _t, | |
| _x | |||
| ) | static _t &_x(){static _t _x; return _x;} |
Defines a function that implements the "construct on first use" idiom
| _t | the type definition for the instance |
| _x | the name of the defined function |
| #define UHD_STATIC_BLOCK | ( | _x | ) |
void _x(void); \ static _uhd_static_fixture _x##_fixture(&_x, #_x); \ void _x(void)
Defines a static code block that will be called before main() The static block will catch and print exceptions to std error.
| _x | the unique name of the fixture (unique per source) |
1.7.6.1