TARAXA
global_const.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #define GLOBAL_CONST(_type_, _name_) _type_ const &_name_()
4 
5 #define GLOBAL_CONST_DEF(_name_, _init_) \
6  decltype(_name_()) _name_() { \
7  static ::std::remove_reference_t<decltype(_name_())> val = _init_; \
8  return val; \
9  }