diff options
author | Ignacio Etcheverry <ignalfonsore@gmail.com> | 2017-08-26 21:41:25 +0200 |
---|---|---|
committer | Ignacio Etcheverry <ignalfonsore@gmail.com> | 2017-08-26 21:41:25 +0200 |
commit | b50a937fe68c8f44fa835ecb6e0c89c4282fd20e (patch) | |
tree | 4840942dc22711d0b7cdd5b8f5187428126bbd1e | |
parent | 53c0010932f9c1becb63c16243f3a00ede359989 (diff) |
MethodBind: Adds operator== to compare by id
-rw-r--r-- | core/object.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/object.h b/core/object.h index 9eb6cd1d56..746450ef6a 100644 --- a/core/object.h +++ b/core/object.h @@ -185,6 +185,7 @@ struct MethodInfo { uint32_t flags; int id; + inline bool operator==(const MethodInfo &p_method) const { return id == p_method.id; } inline bool operator<(const MethodInfo &p_method) const { return id == p_method.id ? (name < p_method.name) : (id < p_method.id); } operator Dictionary() const; |