Ver Fonte

MethodBind: Adds operator== to compare by id

Ignacio Etcheverry há 8 anos atrás
pai
commit
b50a937fe6
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      core/object.h

+ 1 - 0
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;