mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2026-08-12 18:57:12 +02:00
Don't attempt to overload the cmp metamethod in the chrono library types.
This commit is contained in:
@@ -136,7 +136,7 @@ void Register_ChronoTimestamp(HSQUIRRELVM vm, Table & /*cns*/)
|
||||
// Core Meta-methods
|
||||
.SquirrelFunc(_SC("_typename"), &Typename::Fn)
|
||||
.Func(_SC("_tostring"), &Timestamp::ToString)
|
||||
.Func(_SC("_cmp"), &Timestamp::Cmp)
|
||||
.Func(_SC("cmp"), &Timestamp::Cmp)
|
||||
// Meta-methods
|
||||
.Func< Timestamp (Timestamp::*)(const Timestamp &) const >(_SC("_add"), &Timestamp::operator +)
|
||||
.Func< Timestamp (Timestamp::*)(const Timestamp &) const >(_SC("_sub"), &Timestamp::operator -)
|
||||
|
||||
Reference in New Issue
Block a user