meta: add c++ wrapper of core module

This commit is contained in:
2026-02-03 17:41:25 +00:00
parent e0efbd1ec4
commit 13136ecbd6
15 changed files with 682 additions and 3 deletions

20
core-mm/object.cpp Normal file
View File

@@ -0,0 +1,20 @@
#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;
}
}
}