mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-06-15 22:57:12 +02:00
Initial preparations for CURL and Discord integration.
This commit is contained in:
@ -793,10 +793,7 @@ const AABB & AABB::GetEx(SQChar delim, StackStrF & str)
|
||||
}
|
||||
|
||||
// ================================================================================================
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
void Register_AABB(HSQUIRRELVM vm)
|
||||
#pragma clang diagnostic pop
|
||||
{
|
||||
typedef AABB::Value Val;
|
||||
|
||||
|
@ -343,7 +343,7 @@ private:
|
||||
};
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
MemRef MemRef::s_Mem;
|
||||
MemRef MemRef::s_Mem{nullptr};
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void MemRef::Grab()
|
||||
|
@ -59,6 +59,15 @@ public:
|
||||
Grab();
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Default constructor (null).
|
||||
*/
|
||||
explicit MemRef(std::nullptr_t) noexcept
|
||||
: m_Ptr(nullptr)
|
||||
, m_Ref(nullptr)
|
||||
{
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Copy constructor.
|
||||
*/
|
||||
@ -877,7 +886,7 @@ public:
|
||||
// Request the memory
|
||||
Request(n * sizeof(T));
|
||||
// Return the backup
|
||||
return std::move(bkp);
|
||||
return bkp;
|
||||
}
|
||||
// Return an empty buffer
|
||||
return Buffer();
|
||||
|
@ -551,10 +551,7 @@ const Circle & Circle::GetEx(SQChar delim, StackStrF & str)
|
||||
}
|
||||
|
||||
// ================================================================================================
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
void Register_Circle(HSQUIRRELVM vm)
|
||||
#pragma clang diagnostic pop
|
||||
{
|
||||
typedef Circle::Value Val;
|
||||
|
||||
|
@ -740,10 +740,7 @@ static void SqSetColor3UpperCaseHex(bool t)
|
||||
}
|
||||
|
||||
// ================================================================================================
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
void Register_Color3(HSQUIRRELVM vm)
|
||||
#pragma clang diagnostic pop
|
||||
{
|
||||
typedef Color3::Value Val;
|
||||
|
||||
|
@ -777,10 +777,7 @@ static void SqSetColor4UpperCaseHex(bool t)
|
||||
}
|
||||
|
||||
// ================================================================================================
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
void Register_Color4(HSQUIRRELVM vm)
|
||||
#pragma clang diagnostic pop
|
||||
{
|
||||
typedef Color4::Value Val;
|
||||
|
||||
|
@ -398,10 +398,7 @@ template < typename F, typename U, typename... Ts > SQInteger SqDynArgFwd(HSQUIR
|
||||
return sq_throwerror(vm, "Unknown error occurred during comparison");
|
||||
}
|
||||
// We shouldn't really reach this point but something must be returned
|
||||
#pragma clang diagnostic push
|
||||
#pragma ide diagnostic ignored "OCDFAInspection"
|
||||
return sq_throwerror(vm, "Operation encountered unknown behavior");
|
||||
#pragma clang diagnostic pop
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------------------------------------
|
||||
|
@ -771,10 +771,7 @@ const Quaternion & Quaternion::GetEx(SQChar delim, StackStrF & str)
|
||||
}
|
||||
|
||||
// ================================================================================================
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
void Register_Quaternion(HSQUIRRELVM vm)
|
||||
#pragma clang diagnostic pop
|
||||
{
|
||||
typedef Quaternion::Value Val;
|
||||
|
||||
|
@ -525,10 +525,7 @@ const Sphere & Sphere::GetEx(SQChar delim, StackStrF & str)
|
||||
}
|
||||
|
||||
// ================================================================================================
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
void Register_Sphere(HSQUIRRELVM vm)
|
||||
#pragma clang diagnostic pop
|
||||
{
|
||||
typedef Sphere::Value Val;
|
||||
|
||||
|
@ -431,10 +431,7 @@ const Vector2 & Vector2::GetEx(SQChar delim, StackStrF & str)
|
||||
}
|
||||
|
||||
// ================================================================================================
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
void Register_Vector2(HSQUIRRELVM vm)
|
||||
#pragma clang diagnostic pop
|
||||
{
|
||||
typedef Vector2::Value Val;
|
||||
|
||||
|
@ -577,10 +577,7 @@ const Vector2i & Vector2i::GetEx(SQChar delim, StackStrF & str)
|
||||
}
|
||||
|
||||
// ================================================================================================
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
void Register_Vector2i(HSQUIRRELVM vm)
|
||||
#pragma clang diagnostic pop
|
||||
{
|
||||
typedef Vector2i::Value Val;
|
||||
|
||||
|
@ -685,10 +685,7 @@ const Vector3 & Vector3::GetEx(SQChar delim, StackStrF & str)
|
||||
}
|
||||
|
||||
// ================================================================================================
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
void Register_Vector3(HSQUIRRELVM vm)
|
||||
#pragma clang diagnostic pop
|
||||
{
|
||||
typedef Vector3::Value Val;
|
||||
|
||||
|
@ -522,10 +522,7 @@ const Vector4 & Vector4::GetEx(SQChar delim, StackStrF & str)
|
||||
}
|
||||
|
||||
// ================================================================================================
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
void Register_Vector4(HSQUIRRELVM vm)
|
||||
#pragma clang diagnostic pop
|
||||
{
|
||||
typedef Vector4::Value Val;
|
||||
|
||||
|
Reference in New Issue
Block a user