mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-07-01 06:27:11 +02:00
Refactor the binding library even further to reduce code size and complexity.
This commit is contained in:
@ -1563,7 +1563,7 @@ struct StackStrF
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
/// Default constructor.
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
StackStrF()
|
||||
StackStrF() noexcept
|
||||
: mPtr(_SC(""))
|
||||
, mLen(0)
|
||||
, mRes(SQ_OK)
|
||||
@ -1577,7 +1577,7 @@ struct StackStrF
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
/// Compile time string constructor.
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
template < size_t N > StackStrF(const SQChar(&str)[N])
|
||||
template < size_t N > StackStrF(const SQChar(&str)[N]) noexcept
|
||||
: mPtr(str)
|
||||
, mLen(N)
|
||||
, mRes(SQ_OK)
|
||||
@ -1591,7 +1591,7 @@ struct StackStrF
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
/// Base constructor.
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
StackStrF(HSQUIRRELVM vm, SQInteger idx)
|
||||
StackStrF(HSQUIRRELVM vm, SQInteger idx) noexcept
|
||||
: mPtr(nullptr)
|
||||
, mLen(SQ_ERROR)
|
||||
, mRes(SQ_OK)
|
||||
@ -1609,7 +1609,7 @@ struct StackStrF
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
/// Move constructor.
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
StackStrF(StackStrF && o)
|
||||
StackStrF(StackStrF && o) noexcept
|
||||
: mPtr(o.mPtr)
|
||||
, mLen(o.mLen)
|
||||
, mRes(o.mRes)
|
||||
@ -1628,7 +1628,7 @@ struct StackStrF
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
/// Destructor.
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
~StackStrF()
|
||||
~StackStrF() noexcept
|
||||
{
|
||||
if (mVM && !sq_isnull(mObj))
|
||||
{
|
||||
|
Reference in New Issue
Block a user