feat: working operatorDef transfer

This commit is contained in:
parker
2025-07-13 17:39:52 +01:00
parent db5da8a2e8
commit 34a1df859a
4 changed files with 11 additions and 6 deletions

View File

@@ -2,6 +2,8 @@
#include <oneapi/tbb/parallel_for.h>
#include <iostream>
#include <boost/dll/import.hpp>
#include "Engine/Network/NetworkManager.h"
#include "Engine/Operator/OperatorTable.h"
TEST_CASE("foo")
{
@@ -33,10 +35,10 @@ TEST_CASE("boost dll")
);
std::cout << "VAR: " << *cpp_var << "\n";
auto cpp11_func = boost::dll::import_symbol<void(int&&)>(
auto cpp11_func = boost::dll::import_symbol<void(void (*addOperator)(enzo::nt::opConstructor))>(
"build/src/OpDefs/libenzoOps1.so", "newSopOperator"
);
cpp11_func(5);
cpp11_func(enzo::op::OperatorTable::addOperator);
}