mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-06-16 07:07:13 +02:00
Initial preparations for CURL and Discord integration.
This commit is contained in:
@ -13,8 +13,6 @@ SQMODE_DECL_TYPENAME(AreaTypename, _SC("SqArea"))
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
AreaManager AreaManager::s_Inst;
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma ide diagnostic ignored "UnusedValue"
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void Area::AddArray(const Sqrat::Array & a)
|
||||
{
|
||||
@ -47,7 +45,6 @@ void Area::AddArray(const Sqrat::Array & a)
|
||||
return SQ_OK;
|
||||
});
|
||||
}
|
||||
#pragma clang diagnostic pop
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
void Area::AddCircleEx(SQFloat cx, SQFloat cy, SQFloat cr, SQInteger num_segments)
|
||||
{
|
||||
|
@ -115,8 +115,6 @@ inline CSStr ValidateName(CSStr name)
|
||||
// Create iterator to name start
|
||||
CSStr str = name;
|
||||
// Inspect name characters
|
||||
#pragma clang diagnostic push
|
||||
#pragma ide diagnostic ignored "OCDFAInspection"
|
||||
while ('\0' != *str)
|
||||
{
|
||||
// Does it contain spaces?
|
||||
@ -127,7 +125,6 @@ inline CSStr ValidateName(CSStr name)
|
||||
// Move to the next character
|
||||
++str;
|
||||
}
|
||||
#pragma clang diagnostic pop
|
||||
// Return the name
|
||||
return name;
|
||||
}
|
||||
|
@ -330,10 +330,14 @@ public:
|
||||
// Unable to find such routine
|
||||
STHROWF("Unable to find a routine with tag (%s)", tag.mPtr);
|
||||
// Should not reach this point but if it did, we have to return something
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Warray-bounds"
|
||||
#ifdef __clang__
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Warray-bounds"
|
||||
#endif
|
||||
return s_Instances[SQMOD_MAX_ROUTINES].mInst; // Intentional Buffer overflow!
|
||||
#pragma clang diagnostic pop
|
||||
#ifdef __clang__
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
}
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Check if a routine with a certain tag exists.
|
||||
|
@ -664,9 +664,6 @@ protected:
|
||||
// --------------------------------------------------------------------------------------------
|
||||
static SignalPool s_Signals; // List of all created signals.
|
||||
static FreeSignals s_FreeSignals; // List of signals without a name.
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma ide diagnostic ignored "MemberFunctionCanBeStatic"
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Specialization for when there are no arguments given.
|
||||
*/
|
||||
@ -674,7 +671,6 @@ protected:
|
||||
{
|
||||
//...
|
||||
}
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* Specialization for when there's only one argument given/remaining.
|
||||
|
@ -402,10 +402,7 @@ public:
|
||||
STHROWF("Invalid entity instance");
|
||||
}
|
||||
// Validate the actual entity instance
|
||||
#pragma clang diagnostic push
|
||||
#pragma ide diagnostic ignored "OCDFAInspection"
|
||||
inst->Validate();
|
||||
#pragma clang diagnostic pop
|
||||
}
|
||||
catch (const Sqrat::Exception & e)
|
||||
{
|
||||
@ -433,10 +430,7 @@ public:
|
||||
STHROWF("Invalid entity instance");
|
||||
}
|
||||
// Validate the actual entity instance
|
||||
#pragma clang diagnostic push
|
||||
#pragma ide diagnostic ignored "OCDFAInspection"
|
||||
inst->Validate();
|
||||
#pragma clang diagnostic pop
|
||||
}
|
||||
catch (const Sqrat::Exception & e)
|
||||
{
|
||||
@ -464,10 +458,7 @@ public:
|
||||
STHROWF("Invalid entity instance");
|
||||
}
|
||||
// Validate the actual entity instance
|
||||
#pragma clang diagnostic push
|
||||
#pragma ide diagnostic ignored "OCDFAInspection"
|
||||
inst->Validate();
|
||||
#pragma clang diagnostic pop
|
||||
}
|
||||
catch (const Sqrat::Exception & e)
|
||||
{
|
||||
@ -500,10 +491,7 @@ public:
|
||||
STHROWF("Invalid entity instance");
|
||||
}
|
||||
// Validate the actual entity instance
|
||||
#pragma clang diagnostic push
|
||||
#pragma ide diagnostic ignored "OCDFAInspection"
|
||||
inst->Validate();
|
||||
#pragma clang diagnostic pop
|
||||
}
|
||||
catch (const Sqrat::Exception & e)
|
||||
{
|
||||
|
Reference in New Issue
Block a user