BSON_ERROR_RESET(3)

πŸ“¦
version 2.5.6 Β· 3 versions
, in epel 10

BSON_ERROR_RESET(3)? Yep bestie, that's this page, and it's coming at you straight from libbson βœ¨πŸ’…

✨ SYNOPSIS ✨

#define bson_error_reset(ErrorPointer)

πŸŽ€ PARAMETERS πŸŽ€

  • ErrorPointer β€” an l-value expression of type bson_error_t*. It may be a null pointer, no cap 🫢

πŸ’– DESCRIPTION πŸ’–

okay so here's the tea: this function-like macro modifies a pointer to bson_error_t so it becomes non-null, and it clears any contained value using bson_error_clear(). It's literally giving ✨fresh-start energy✨.

If the given pointer object is null, then the pointer is updated to point to a local anonymous bson_error_t object. After this macro is evaluated, it is guaranteed that the given pointer is non-null. Periodt πŸ’…

⚠️ IMPORTANT: This function-like macro is not valid in C++! Do not try to make it happen in C++, bestie β€” it is simply not valid there 😭🚫

πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc πŸ‘‘

2009-present, MongoDB, Inc. 🌸


with so much love from libbson 2.5.6, dated Oct 09, 2026 πŸ’–πŸ¦‹βœ¨

πŸ“¦ where this page comes from