BSON_ERROR_RESET(3)
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 typebson_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 π
π COPYRIGHT π
2009-present, MongoDB, Inc. πΈ
with so much love from libbson 2.5.6, dated Oct 09, 2026 ππ¦β¨
π¦ where this page comes from
- epel 10: libbson-devel 2.5.6-1.el10_3 Β· Apache-2.0 AND ISC AND MIT AND Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms