forked from KPGPMC/furlang
feat(furvm): introduce context
This commit is contained in:
@@ -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
|
||||
@@ -0,0 +1,3 @@
|
||||
#include "furvm/context.hpp"
|
||||
|
||||
namespace furvm {}
|
||||
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user