diff --git a/CMakeLists.txt b/CMakeLists.txt index d7f36d9..5e2c523 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.25) -project(blt-gp VERSION 0.0.34) +project(blt-gp VERSION 0.0.35) include(CTest) diff --git a/include/blt/gp/tree.h b/include/blt/gp/tree.h index 700eeeb..c78398d 100644 --- a/include/blt/gp/tree.h +++ b/include/blt/gp/tree.h @@ -32,15 +32,13 @@ namespace blt::gp struct op_container_t { - op_container_t(detail::callable_t& func, u16 depth, bool isStatic, u16 argc, u8 argcContext): - func(func), depth(depth), is_static(isStatic), argc(argc), argc_context(argcContext) + op_container_t(detail::callable_t& func, detail::transfer_t& transfer, bool is_value): + func(func), transfer(transfer), is_value(is_value) {} detail::callable_t& func; - blt::u16 depth; - bool is_static: 1; - blt::u16 argc: 15; - blt::u8 argc_context; + detail::transfer_t& transfer; + bool is_value; }; class evaluation_context @@ -48,7 +46,7 @@ namespace blt::gp friend class tree_t; private: - explicit evaluation_context(stack_allocator values): values(std::move(values)) + explicit evaluation_context() {} blt::gp::stack_allocator values; @@ -108,7 +106,7 @@ namespace blt::gp } /** - * Helper template for returning the result of evalutation (this calls it) + * Helper template for returning the result of evaluation (this calls it) */ template T get_evaluation_value(void* context) diff --git a/lib/blt b/lib/blt index 3426c5d..cdb91d8 160000 --- a/lib/blt +++ b/lib/blt @@ -1 +1 @@ -Subproject commit 3426c5d2ad982eb7d04f20d877085e4aae4001a3 +Subproject commit cdb91d800781d2c2a8ad3b9a829ca6d52abaa6ea