|
swift
|
Go to the source code of this file.
Namespaces | |
| namespace | swift::misc |
| Free functions in swift::misc. | |
Macros | |
| #define | SWIFT_VERIFY_X(COND, WHERE, WHAT) |
| A weaker kind of assert. | |
| #define | SWIFT_VERIFY(COND) |
| A weaker kind of assert. | |
| #define | SWIFT_AUDIT_X(COND, WHERE, WHAT) |
| A weaker kind of verify. | |
| #define | SWIFT_AUDIT(COND) |
| A weaker kind of verify. | |
Functions | |
| void | swift::misc::private_ns::failedVerify (const char *condition, const char *filename, int line, const char *context, const char *message, bool audit) |
| Called by SWIFT_VERIFY when the condition is false. | |
| #define SWIFT_AUDIT | ( | COND | ) |
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 | ) |
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.
| #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.
| SWIFT_MISC_EXPORT SWIFT_NO_INLINE void swift::misc::private_ns::failedVerify | ( | const char * | condition, |
| const char * | filename, | ||
| int | line, | ||
| const char * | context, | ||
| const char * | message, | ||
| bool | audit ) |
Called by SWIFT_VERIFY when the condition is false.
Definition at line 34 of file verify.cpp.