|
WG14 result
|

Go to the source code of this file.
Macros | |
| #define | STATUS_CODE_WITH_PAYLOAD(name) struct WG14_RESULT_PREFIX(status_code_with_payload_##name) |
The type of a status code with named payload. You must call STATUS_CODE_WITH_PAYLOAD_DECLARE(T, name) first. | |
| #define | STATUS_CODE_WITH_PAYLOAD_DECLARE(T, name) |
| #define | STATUS_CODE_WITH_PAYLOAD_MAKE(name, ...) WG14_RESULT_PREFIX(status_code_with_payload_##name##_make)(__VA_ARGS__) |
| Make a named status code previously declared. | |
| #define | status_code_is_empty(...) WG14_RESULT_PREFIX(status_code_is_empty)(&(__VA_ARGS__).base) |
| True if the status code is empty (convenience macro) | |
| #define | status_code_is_success(...) WG14_RESULT_PREFIX(status_code_is_success)(&(__VA_ARGS__).base) |
| True if the status code is a success (convenience macro) | |
| #define | status_code_is_failure(...) WG14_RESULT_PREFIX(status_code_is_failure)(&(__VA_ARGS__).base) |
| True if the status code is a failure (convenience macro) | |
| #define | status_code_message(...) WG14_RESULT_PREFIX(status_code_message)(&(__VA_ARGS__).base) |
Retrieves the message of the status code (convenience macro). Make sure you call status_code_domain_string_ref_destroy() when you are done with the returned string reference. | |
| #define | status_code_strictly_equivalent(primary, secondary) |
True if the status codes are strictly semantically equivalent (convenience macro). primary's domain's equivalence function decides if secondary is semantically equivalent to it. Note that for most status codes, if the codes have the same domain, a pure value equality is performed. This operation may not be transitive. | |
| #define | status_code_destroy(...) |
| Destroys the status code (type aware) | |
| #define | status_code_clone(dest, src) |
| Clones the status code (type aware) | |
| #define status_code_clone | ( | dest, | |
| src | |||
| ) |
Clones the status code (type aware)
Definition at line 221 of file status_code.h.
| #define status_code_destroy | ( | ... | ) |
Destroys the status code (type aware)
Definition at line 194 of file status_code.h.
| #define status_code_is_empty | ( | ... | ) | WG14_RESULT_PREFIX(status_code_is_empty)(&(__VA_ARGS__).base) |
True if the status code is empty (convenience macro)
Definition at line 172 of file status_code.h.
| #define status_code_is_failure | ( | ... | ) | WG14_RESULT_PREFIX(status_code_is_failure)(&(__VA_ARGS__).base) |
True if the status code is a failure (convenience macro)
Definition at line 178 of file status_code.h.
| #define status_code_is_success | ( | ... | ) | WG14_RESULT_PREFIX(status_code_is_success)(&(__VA_ARGS__).base) |
True if the status code is a success (convenience macro)
Definition at line 175 of file status_code.h.
| #define status_code_message | ( | ... | ) | WG14_RESULT_PREFIX(status_code_message)(&(__VA_ARGS__).base) |
Retrieves the message of the status code (convenience macro). Make sure you call status_code_domain_string_ref_destroy() when you are done with the returned string reference.
Definition at line 183 of file status_code.h.
| #define status_code_strictly_equivalent | ( | primary, | |
| secondary | |||
| ) |
True if the status codes are strictly semantically equivalent (convenience macro). primary's domain's equivalence function decides if secondary is semantically equivalent to it. Note that for most status codes, if the codes have the same domain, a pure value equality is performed. This operation may not be transitive.
Definition at line 190 of file status_code.h.
| #define STATUS_CODE_WITH_PAYLOAD | ( | name | ) | struct WG14_RESULT_PREFIX(status_code_with_payload_##name) |
The type of a status code with named payload. You must call STATUS_CODE_WITH_PAYLOAD_DECLARE(T, name) first.
Definition at line 37 of file status_code.h.
| #define STATUS_CODE_WITH_PAYLOAD_DECLARE | ( | T, | |
| name | |||
| ) |
Definition at line 44 of file status_code.h.
| #define STATUS_CODE_WITH_PAYLOAD_MAKE | ( | name, | |
| ... | |||
| ) | WG14_RESULT_PREFIX(status_code_with_payload_##name##_make)(__VA_ARGS__) |
Make a named status code previously declared.
Definition at line 59 of file status_code.h.