FUCK NEXT CLOUD 2

thread
Brett 2024-06-26 20:26:29 -04:00
parent ad1f4a3ee3
commit 0a2a351654
3 changed files with 8 additions and 10 deletions

View File

@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.25) cmake_minimum_required(VERSION 3.25)
project(blt-gp VERSION 0.0.34) project(blt-gp VERSION 0.0.35)
include(CTest) include(CTest)

View File

@ -32,15 +32,13 @@ namespace blt::gp
struct op_container_t struct op_container_t
{ {
op_container_t(detail::callable_t& func, u16 depth, bool isStatic, u16 argc, u8 argcContext): op_container_t(detail::callable_t& func, detail::transfer_t& transfer, bool is_value):
func(func), depth(depth), is_static(isStatic), argc(argc), argc_context(argcContext) func(func), transfer(transfer), is_value(is_value)
{} {}
detail::callable_t& func; detail::callable_t& func;
blt::u16 depth; detail::transfer_t& transfer;
bool is_static: 1; bool is_value;
blt::u16 argc: 15;
blt::u8 argc_context;
}; };
class evaluation_context class evaluation_context
@ -48,7 +46,7 @@ namespace blt::gp
friend class tree_t; friend class tree_t;
private: private:
explicit evaluation_context(stack_allocator values): values(std::move(values)) explicit evaluation_context()
{} {}
blt::gp::stack_allocator values; 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<typename T> template<typename T>
T get_evaluation_value(void* context) T get_evaluation_value(void* context)

@ -1 +1 @@
Subproject commit 3426c5d2ad982eb7d04f20d877085e4aae4001a3 Subproject commit cdb91d800781d2c2a8ad3b9a829ca6d52abaa6ea