Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mockingbirdnest/Principia
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: be4d348ed03e
Choose a base ref
...
head repository: mockingbirdnest/Principia
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 4ce93054cdc9
Choose a head ref
  • 2 commits
  • 1 file changed
  • 1 contributor

Commits on Jul 7, 2021

  1. parentheses

    eggrobin committed Jul 7, 2021
    Copy the full SHA
    5f0b543 View commit details
  2. Copy the full SHA
    4ce9305 View commit details
Showing with 3 additions and 2 deletions.
  1. +3 −2 base/macros.hpp
5 changes: 3 additions & 2 deletions base/macros.hpp
Original file line number Diff line number Diff line change
@@ -163,8 +163,9 @@ inline void noreturn() { std::exit(0); }
#define CONSTEXPR_DCHECK(condition) DCHECK(condition)

// Lexicographic comparison (v1, v2, v3) ≥ (w1, w2, w3).
#define VERSION_GE(v1, v2, v3, w1, w2, w3) \
v1 > w1 || (v1 == w1 && v2 > w2) || (v1 == w1 && v2 == w2 && v3 >= w3)
#define VERSION_GE(v1, v2, v3, w1, w2, w3) \
((v1) > (w1) || ((v1) == (w1) && (v2) > (w2)) || \
((v1) == (w1) && (v2) == (w2) && (v3) >= (w3)))

#define CLANG_VERSION_GE(major, minor, patchlevel) \
VERSION_GE(__clang_major__, \