fix naming?
parent
cd9ec507d6
commit
0869509c6a
|
@ -1,6 +1,6 @@
|
||||||
cmake_minimum_required(VERSION 3.20)
|
cmake_minimum_required(VERSION 3.20)
|
||||||
include(cmake/color.cmake)
|
include(cmake/color.cmake)
|
||||||
set(BLT_VERSION 0.20.2)
|
set(BLT_VERSION 0.20.3)
|
||||||
set(BLT_TEST_VERSION 0.0.1)
|
set(BLT_TEST_VERSION 0.0.1)
|
||||||
|
|
||||||
set(BLT_TARGET BLT)
|
set(BLT_TARGET BLT)
|
||||||
|
|
|
@ -30,7 +30,7 @@ namespace blt
|
||||||
TYPE& get_##NAME() { return NAME; } \
|
TYPE& get_##NAME() { return NAME; } \
|
||||||
const TYPE& get_##NAME() const { return NAME; }
|
const TYPE& get_##NAME() const { return NAME; }
|
||||||
|
|
||||||
#define BLT_INTERNAL_MAKE_GETTER(TYPE, NAME) \
|
#define BLT_INTERNAL_MAKE_SETTER(TYPE, NAME) \
|
||||||
auto& set_##NAME(const TYPE& new_##NAME) \
|
auto& set_##NAME(const TYPE& new_##NAME) \
|
||||||
{ \
|
{ \
|
||||||
NAME = new_##NAME; \
|
NAME = new_##NAME; \
|
||||||
|
@ -52,7 +52,7 @@ namespace blt
|
||||||
private: \
|
private: \
|
||||||
BLT_MAKE_VARIABLE(TYPE, NAME) \
|
BLT_MAKE_VARIABLE(TYPE, NAME) \
|
||||||
public: \
|
public: \
|
||||||
BLT_INTERNAL_MAKE_GETTER(TYPE, NAME)
|
BLT_INTERNAL_MAKE_SETTER(TYPE, NAME)
|
||||||
|
|
||||||
#define BLT_MAKE_FRIEND(FRIEND) friend FRIEND;
|
#define BLT_MAKE_FRIEND(FRIEND) friend FRIEND;
|
||||||
|
|
||||||
|
@ -66,7 +66,7 @@ namespace blt
|
||||||
BLT_MAKE_VARIABLE(TYPE, NAME) \
|
BLT_MAKE_VARIABLE(TYPE, NAME) \
|
||||||
public: \
|
public: \
|
||||||
BLT_INTERNAL_MAKE_GETTER(TYPE, NAME) \
|
BLT_INTERNAL_MAKE_GETTER(TYPE, NAME) \
|
||||||
BLT_INTERNAL_MAKE_GETTER(TYPE, NAME)
|
BLT_INTERNAL_MAKE_SETTER(TYPE, NAME)
|
||||||
|
|
||||||
#define BLT_MAKE_CONFIG_TYPE(OBJECT, ...) \
|
#define BLT_MAKE_CONFIG_TYPE(OBJECT, ...) \
|
||||||
class OBJECT { \
|
class OBJECT { \
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit d88c5e15079047777b418132ece5879e7c9aaa2b
|
Subproject commit 8a889d3699b3c09ade435641fb034427f3fd12b6
|
Loading…
Reference in New Issue