forked from KPGPMC/furlang
refactor(furvm): add shared pointer aliases
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
#include <cstddef> // IWYU pragma: export
|
||||
#include <cstdint> // IWYU pragma: export
|
||||
#include <memory>
|
||||
|
||||
/**
|
||||
* @brief Furlang's virtual machine.
|
||||
@@ -56,6 +57,11 @@ struct instruction;
|
||||
*/
|
||||
class mod;
|
||||
|
||||
/**
|
||||
* @brief An alias to a module shared pointer.
|
||||
*/
|
||||
using mod_p = std::shared_ptr<mod>;
|
||||
|
||||
/**
|
||||
* @brief Furvm module's index.
|
||||
*/
|
||||
@@ -77,6 +83,11 @@ enum class thing_t : std::uint8_t;
|
||||
*/
|
||||
class thing;
|
||||
|
||||
/**
|
||||
* @brief An alias to a thing shared pointer.
|
||||
*/
|
||||
using thing_p = std::shared_ptr<thing>;
|
||||
|
||||
/**
|
||||
* @brief Furvm thing's index.
|
||||
*/
|
||||
@@ -98,6 +109,11 @@ enum class executor_flags : std::uint32_t;
|
||||
*/
|
||||
class executor;
|
||||
|
||||
/**
|
||||
* @brief An alias to a executor shared pointer.
|
||||
*/
|
||||
using executor_p = std::shared_ptr<executor>;
|
||||
|
||||
/**
|
||||
* @brief Furvm executor's index.
|
||||
*/
|
||||
@@ -113,6 +129,11 @@ using executor_handle = std::uint32_t;
|
||||
*/
|
||||
class context;
|
||||
|
||||
/**
|
||||
* @brief An alias to a context shared pointer.
|
||||
*/
|
||||
using context_p = std::shared_ptr<context>;
|
||||
|
||||
} // namespace furvm
|
||||
|
||||
#endif // FURVM_FWD_HPP
|
||||
Reference in New Issue
Block a user