From 0454fdcbff0e852ffd03fd83e53a32ff89fd9700 Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Tue, 25 Jun 2024 00:26:05 -0400 Subject: [PATCH 1/2] xo-reflect: minor: move assign_tdextra() impl to .hpp --- include/xo/reflect/TypeDescr.hpp | 5 ++++- src/reflect/TypeDescr.cpp | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/include/xo/reflect/TypeDescr.hpp b/include/xo/reflect/TypeDescr.hpp index 31c5806..4591bbe 100644 --- a/include/xo/reflect/TypeDescr.hpp +++ b/include/xo/reflect/TypeDescr.hpp @@ -351,7 +351,10 @@ namespace xo { /* call this once to attach extended type information to a type-description * (e.g. description of struct members for a record type) */ - void assign_tdextra(std::unique_ptr tdx); + void assign_tdextra(std::unique_ptr tdx) { + this->complete_flag_ = true; + this->tdextra_ = std::move(tdx); + } private: TypeDescrBase(TypeId id, diff --git a/src/reflect/TypeDescr.cpp b/src/reflect/TypeDescr.cpp index 41f5204..9bb4bc3 100644 --- a/src/reflect/TypeDescr.cpp +++ b/src/reflect/TypeDescr.cpp @@ -288,6 +288,7 @@ namespace xo { return retval; } /*mark_complete*/ +#ifdef NOT_USING void TypeDescrBase::assign_tdextra(std::unique_ptr tdx) { @@ -302,6 +303,7 @@ namespace xo { this->complete_flag_ = true; this->tdextra_ = std::move(tdx); } /*assign_tdextra*/ +#endif TypeDescrTable::TypeDescrTable() { Reflect::require(); From a7b6ca28645b1e4f845a0d2a650991ba61805ead Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Tue, 25 Jun 2024 00:26:25 -0400 Subject: [PATCH 2/2] xo-reflect: + xo-reflectutil in README --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 370cbaf..4e43dfd 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,7 @@ Installs a few cmake ingredients, along with a build assistant `xo-build` for X $ xo-build --clone --configure --build --install xo-indentlog $ xo-build --clone --configure --build --install xo-refnct $ xo-build --clone --configure --build --install xo-subsys +$ xo-build --clone --configure --build --install xo-reflectutil ``` Note: can use `-n` to dry-run here