mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2026-10-28 07:27:09 +01:00
Don't attempt to overload the cmp metamethod in the chrono library types.
This commit is contained in:
1 parent
ff4c0b6143
commit
68c8921415
5 files changed
+5
-5
No files matched your search
@@ -765,7 +765,7 @@ void Register_ChronoDatetime(HSQUIRRELVM vm, Table & /*cns*/)
|
||||
// Core Meta-methods
|
||||
.SquirrelFunc(_SC("_typename"), &Typename::Fn)
|
||||
.Func(_SC("_tostring"), &Datetime::ToString)
|
||||
.Func(_SC("_cmp"), &Datetime::Cmp)
|
||||
.Func(_SC("cmp"), &Datetime::Cmp)
|
||||
// Meta-methods
|
||||
.Func< Datetime (Datetime::*)(const Datetime &) const >(_SC("_add"), &Datetime::operator +)
|
||||
.Func< Datetime (Datetime::*)(const Datetime &) const >(_SC("_sub"), &Datetime::operator -)
|
||||
|
||||
Reference in new issue
Block a user