refactor(furvm): remove thing handles

This commit is contained in:
2026-08-13 22:08:59 +02:00
parent 21e92dcb4b
commit 84b70077c1
10 changed files with 186 additions and 144 deletions
+2 -3
View File
@@ -10,7 +10,7 @@
#include <memory>
#include <sstream>
static void print_thing(const furvm::thing<furvm::thing_allocator>& thing) {
static void print_thing(const furvm::thing<>& thing) {
using namespace furvm;
switch (thing.true_type().type) {
@@ -75,8 +75,7 @@ int main(int argc, char** argv) {
mod->emplace_function(furvm::function_sig{ { u64Type }, u64Type }, "print").dispatch();
#endif
mod->set_native_function("println", [](furvm::executor& executor) {
auto arg = executor.load_thing(0);
print_thing(*arg);
print_thing(executor.load_thing(0));
std::cout << '\n';
});