Files
bluelib/core-mm/object.cpp

21 lines
219 B
C++
Raw Normal View History

2026-02-03 17:41:25 +00:00
#include <blue/core/object.hpp>
namespace blue::core
{
object::object(object &&other)
{
ptr_ = other.ptr_;
other.ptr_ = nullptr;
}
object::~object()
{
if (ptr_) {
b_object_unref(ptr_);
ptr_ = nullptr;
}
}
}