|
swift
|
Go to the source code of this file.
Namespaces | |
| swift::misc | |
| Free functions in swift::misc. | |
Macros | |
| #define | SWIFT_VERIFY_X(COND, WHERE, WHAT) |
| A weaker kind of assert. More... | |
| #define | SWIFT_VERIFY(COND) SWIFT_VERIFY_X(COND, nullptr, nullptr) |
| A weaker kind of assert. More... | |
| #define | SWIFT_AUDIT_X(COND, WHERE, WHAT) |
| A weaker kind of verify. More... | |
| #define | SWIFT_AUDIT(COND) SWIFT_AUDIT_X(COND, nullptr, nullptr) |
| A weaker kind of verify. More... | |
| #define SWIFT_AUDIT | ( | COND | ) | SWIFT_AUDIT_X(COND, nullptr, nullptr) |
A weaker kind of verify.
Indicative of a serious but recoverable problem originating in an external data source. In debug builds under debugging, triggers a debugger breakpoint. Otherwise generates a warning. Not a substitute for proper validation. A failed audit in production is suggestive of insufficient validation.
| #define SWIFT_AUDIT_X | ( | COND, | |
| WHERE, | |||
| WHAT | |||
| ) |
A weaker kind of verify.
Indicative of a serious but recoverable problem originating in an external data source. In debug builds under debugging, triggers a debugger breakpoint. Otherwise generates a warning. Not a substitute for proper validation. A failed audit in production is suggestive of insufficient validation.
| #define SWIFT_VERIFY | ( | COND | ) | SWIFT_VERIFY_X(COND, nullptr, nullptr) |
| #define SWIFT_VERIFY_X | ( | COND, | |
| WHERE, | |||
| WHAT | |||
| ) |
A weaker kind of assert.
Still indicates a programmer mistake, but one which is recoverable. In debug builds, triggers a debugger breakpoint. In release builds, generates a warning.