mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2024-11-08 16:57:16 +01:00
26 lines
772 B
C++
26 lines
772 B
C++
// ------------------------------------------------------------------------------------------------
|
|
#include "Common.hpp"
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
#include <cstdlib>
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
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
|