mirror of
https://github.com/github/codeql.git
synced 2025-12-31 16:16:34 +01:00
Merge pull request #13988 from github/redsun82/swift-version-macro
Swift: fix version check macro to be lexicographic
This commit is contained in:
@@ -27,8 +27,9 @@ namespace codeql {
|
||||
using type = TAG; \
|
||||
};
|
||||
|
||||
#define CODEQL_SWIFT_VERSION_GE(MAJOR, MINOR) \
|
||||
CODEQL_SWIFT_VERSION_MAJOR >= (MAJOR) && CODEQL_SWIFT_VERSION_MINOR >= (MINOR)
|
||||
#define CODEQL_SWIFT_VERSION_GE(MAJOR, MINOR) \
|
||||
(CODEQL_SWIFT_VERSION_MAJOR == (MAJOR) && CODEQL_SWIFT_VERSION_MINOR >= (MINOR)) || \
|
||||
CODEQL_SWIFT_VERSION_MAJOR > (MAJOR)
|
||||
|
||||
// clang-format off
|
||||
// use indentation to recreate all involved type hierarchies
|
||||
|
||||
Reference in New Issue
Block a user