feat(furvm): introduce context

This commit is contained in:
2026-06-05 12:17:00 +02:00
parent 4a3ce6040c
commit 2f9328d85a
3 changed files with 38 additions and 2 deletions
+33
View File
@@ -0,0 +1,33 @@
#ifndef FURVM_CONTEXT_HPP
#define FURVM_CONTEXT_HPP
namespace furvm {
/**
* @brief Context.
*
* A furvm context.
*/
class context {
public:
context() = default;
~context() = default;
/**
* @brief Move constructor.
*/
context(context&&) = default;
/**
* @brief Move constructor.
*/
context& operator=(context&&) = default;
context(const context&) = delete;
context& operator=(const context&) = delete;
private:
};
} // namespace furvm
#endif // FURVM_CONTEXT_HPP
+3
View File
@@ -0,0 +1,3 @@
#include "furvm/context.hpp"
namespace furvm {}
+2 -2
View File
@@ -1,9 +1,9 @@
#ifndef LIBFURVM
#include <iostream>
#include "furvm/context.hpp"
int main(void) {
std::cout << "Hello, furlang!\n";
furvm::context context;
return 0;
}