Skip to content

Commit

Permalink
Add equality operator for BMLVersion struct
Browse files Browse the repository at this point in the history
  • Loading branch information
doyaGu committed Feb 28, 2025
1 parent 34dcedd commit eaada5e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/BML/IMod.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ struct BMLVersion {
bool operator>=(const BMLVersion &o) const {
return !(*this < o);
}

bool operator==(const BMLVersion &o) const {
return major == o.major && minor == o.minor && patch == o.patch;
}
};

#define DECLARE_BML_VERSION \
Expand Down

0 comments on commit eaada5e

Please sign in to comment.