2016-03-10 04:57:13 +01:00
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
#include "Common.hpp"
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
#include <cstdlib>
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
namespace SqMod {
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
DbRef::Pointer DbRef::Create()
|
|
|
|
{
|
2016-06-03 20:29:15 +02:00
|
|
|
return reinterpret_cast< Pointer >(std::malloc(sizeof(Type)));
|
2016-03-10 04:57:13 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
void DbRef::Destroy(Pointer db)
|
|
|
|
{
|
|
|
|
if (db)
|
2016-06-03 20:29:15 +02:00
|
|
|
{
|
|
|
|
std::free(db);
|
|
|
|
}
|
2016-03-10 04:57:13 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
} // Namespace:: SqMod
|