1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-07-06 08:57:11 +02:00

Implement the pure typename meta-methods in Signal type using the standard method.

This commit is contained in:
Sandu Liviu Catalin
2016-11-15 21:42:54 +02:00
parent d059d0d1ac
commit de4c7da73f
2 changed files with 6 additions and 36 deletions

View File

@ -391,25 +391,6 @@ public:
*/
Signal & operator = (Signal && o) = delete;
/* --------------------------------------------------------------------------------------------
* Used by the script engine to compare two instances of this type.
*/
Int32 Cmp(const Signal & o) const
{
if (m_Name == o.m_Name)
{
return 0;
}
else if (m_Name > o.m_Name)
{
return 1;
}
else
{
return -1;
}
}
/* --------------------------------------------------------------------------------------------
* Used by the script engine to convert an instance of this type to a string.
*/
@ -418,11 +399,6 @@ public:
return m_Name;
}
/* --------------------------------------------------------------------------------------------
* Used by the script engine to retrieve the name from instances of this type.
*/
static SQInteger Typename(HSQUIRRELVM vm);
/* --------------------------------------------------------------------------------------------
* Retrieve the associated user data.
*/