config changes
parent
a1bc8cf1c2
commit
57ddcafcda
|
@ -1,6 +1,6 @@
|
|||
cmake_minimum_required(VERSION 3.20)
|
||||
include(cmake/color.cmake)
|
||||
set(BLT_VERSION 5.3.5)
|
||||
set(BLT_VERSION 5.3.6)
|
||||
|
||||
set(BLT_TARGET BLT)
|
||||
|
||||
|
|
|
@ -27,18 +27,24 @@ namespace blt
|
|||
TYPE& get_##NAME() { return NAME; } \
|
||||
const TYPE& get_##NAME() const { return NAME; }
|
||||
|
||||
#define BLT_MAKE_SETTER(TYPE, NAME) \
|
||||
#define BLT_MAKE_SETTER_LVALUE(TYPE, NAME) \
|
||||
auto& set_##NAME(const TYPE& new_##NAME) \
|
||||
{ \
|
||||
NAME = new_##NAME; \
|
||||
return *this; \
|
||||
} \
|
||||
}
|
||||
|
||||
#define BLT_MAKE_SETTER_RVALUE(TYPE, NAME) \
|
||||
auto& set_##NAME(TYPE&& new_##NAME) \
|
||||
{ \
|
||||
NAME = std::move(new_##NAME); \
|
||||
return *this; \
|
||||
}
|
||||
|
||||
#define BLT_MAKE_SETTER(TYPE, NAME) \
|
||||
BLT_MAKE_SETTER_LVALUE(TYPE, NAME) \
|
||||
BLT_MAKE_SETTER_RVALUE(TYPE, NAME)
|
||||
|
||||
#define BLT_MAKE_GETTER_AND_SETTER(TYPE, NAME) \
|
||||
BLT_MAKE_GETTER(TYPE, NAME) \
|
||||
BLT_MAKE_SETTER(TYPE, NAME)
|
||||
|
|
Loading…
Reference in New Issue