// ------------------------------------------------------------------------------------------------ #include "Common.hpp" // ------------------------------------------------------------------------------------------------ #include // ------------------------------------------------------------------------------------------------ namespace SqMod { // ------------------------------------------------------------------------------------------------ DbRef::Pointer DbRef::Create() { return reinterpret_cast< Pointer >(std::malloc(sizeof(Type))); } // ------------------------------------------------------------------------------------------------ void DbRef::Destroy(Pointer db) { if (db) { std::free(db); } } } // Namespace:: SqMod