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