refactor: add bytecode to module

This commit is contained in:
2026-06-05 18:16:54 +02:00
parent 6481c9c71d
commit 0304911516
2 changed files with 25 additions and 2 deletions
+9 -1
View File
@@ -1,11 +1,19 @@
#ifndef LIBFURVM
#include "furvm/context.hpp"
#include "furvm/instruction.hpp"
#include <array>
#include <cstddef>
static constexpr std::array<furvm::byte, 1> s_bytecode = {
furvm::byte(furvm::instruction_t::NoOperation),
};
int main(void) {
furvm::context context;
auto mainModule = context.emplace();
auto mainModule = context.emplace(s_bytecode.begin(), s_bytecode.end());
return 0;
}