forked from KPGPMC/furlang
refactor: add bytecode to module
This commit is contained in:
+9
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user