bson_error_reset - Man Page

Synopsis

#define bson_error_reset(ErrorPointer)

Parameters

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 guaranteed that the given pointer is non-null.

Important:

This function-like macro is not valid in C++!

Author

MongoDB, Inc

Info

Mar 04, 2026 2.2.3 libbson