value.hpp 549 B

123456789101112131415161718192021222324
  1. #ifndef AFUN_VALUE_HPP
  2. #define AFUN_VALUE_HPP
  3. #include "tool.hpp"
  4. #include "aFunCoreExport.h"
  5. namespace aFuncore {
  6. class Object;
  7. };
  8. #include "gc.hpp"
  9. #include "inter.hpp"
  10. namespace aFuncore {
  11. class Object : public GcObject<class Object> {
  12. friend class Inter;
  13. Inter *inter;
  14. public:
  15. const std::string type; // 标识 Object 的字符串
  16. AFUN_CORE_EXPORT explicit Object(const std::string &type, Inter *inter_);
  17. AFUN_CORE_EXPORT ~Object() override =default;
  18. };
  19. };
  20. #endif //AFUN_VALUE_HPP