mirror of
https://github.com/apple/swift-collections
synced 2026-11-24 04:27:53 +00:00
[Collections] Allow determining if internal checking is enabled
In the benchmark target, complain loudly if consistency checks are enabled.
This commit is contained in:
1 parent
53895c6537
commit
12e3867ccb
6 files changed
+53
-4
No files matched your search
@@ -9,10 +9,14 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
import Swift
|
||||
import _CollectionsUtilities
|
||||
|
||||
extension Heap {
|
||||
#if COLLECTIONS_INTERNAL_CHECKS
|
||||
public static var _isConsistencyCheckingEnabled: Bool {
|
||||
_isCollectionsInternalCheckingEnabled
|
||||
}
|
||||
|
||||
#if COLLECTIONS_INTERNAL_CHECKSx
|
||||
/// Visits each item in the heap in depth-first order, verifying that the
|
||||
/// contents satisfy the min-max heap property.
|
||||
@inlinable
|
||||
|
||||
Reference in new issue
Block a user