refactor(furvm): refactor thing

A pretty sloppy thing class refactor.

Refs: #12
This commit is contained in:
2026-06-16 14:59:29 +02:00
parent 0dfa8c1c02
commit c9f714642c
4 changed files with 21 additions and 70 deletions
+2 -1
View File
@@ -8,6 +8,7 @@
#include "furvm/thing.hpp"
#include <cstdint>
#include <memory>
#include <stdexcept>
namespace furvm {
@@ -86,7 +87,7 @@ void executor::step() {
switch (instr) {
case instruction_t::NoOperation: break;
case instruction_t::PushB2I: {
auto thing = thing::create(m_context, thing_t::Int32);
auto thing = std::make_shared<class thing>(m_context, thing_t::Int32);
thing->int32() = frame.mod->byte(frame.position++);
push_thing(std::move(thing));
} break;