table of contents
| BSON_ERROR_RESET(3) | libbson | BSON_ERROR_RESET(3) |
SYNOPSIS¶
#define bson_error_reset(ErrorPointer)
PARAMETERS¶
- •
- ErrorPointer: An l-value expression of type bson_error_t*. May be a null pointer.
DESCRIPTION¶
This function-like macro modifies a pointer to bson_error_t to be non-null, and clears any contained value using bson_error_clear().
If the given pointer object is null, then the pointer is updated to point to a local anonymous bson_error_t object. After the evaluation of this macro, it is gauranteed that the given pointer is non-null.
IMPORTANT:
This function-like macro is not valid in C++!
AUTHOR¶
MongoDB, Inc
COPYRIGHT¶
2009-present, MongoDB, Inc.
| October 8, 2025 | 2.1.2 |