config changes

main
Brett 2025-04-19 16:29:16 -04:00
parent a1bc8cf1c2
commit 57ddcafcda
2 changed files with 9 additions and 3 deletions

View File

@ -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)

View File

@ -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)