feat(furvm): add basic function

This commit is contained in:
2026-06-11 14:46:17 +02:00
parent 5472b77ea0
commit ba39f5ab27
7 changed files with 244 additions and 8 deletions
+4 -2
View File
@@ -8,6 +8,7 @@
namespace furvm {
class mod {
friend class function;
public:
using bytecode_t = std::vector<byte>; /**< An alias to a vector of bytes. */
public:
@@ -51,8 +52,9 @@ public:
*/
constexpr byte byte(std::size_t offset) const { return m_bytecode.at(offset); }
private:
module_handle m_id;
bytecode_t m_bytecode;
module_handle m_id;
bytecode_t m_bytecode;
std::vector<function_p> m_functions;
};
} // namespace furvm