BSON_GET_MAJOR_VERSION(3)
π BSON_GET_MAJOR_VERSION(3) π
ok so bestie, this is a page from the libbson manual, and it's lowkey the shortest little baddie ever β but she still ate π
β¨ SYNOPSIS β¨
int
bson_get_major_version (void);
like, that's it. that's the whole vibe. no arguments, no nothing π¦
π DESCRIPTION π
okay so real talk: bson_get_major_version grabs the first number in libbson's MAJOR.MINOR.MICRO release version. she's the main character of the version string β the big one, the headliner, the one everyone points at π
so if the version is like MAJOR.MINOR.MICRO, this function is handing you the MAJOR part and nothing else. periodt π
πΈ RETURNS πΈ
it returns the value of BSON_MAJOR_VERSION at the moment libbson was compiled β¨
ngl that distinction matters β it's giving "compiled-time" energy, not "ask the library at runtime" energy. iykyk π§
π«Ά AUTHOR π«Ά
MongoDB, Inc β iconic, no cap π
π COPYRIGHT π
2009-present, MongoDB, Inc.
and that's the whole page diva π go forth and check your major version responsibly π
π reminder: BSON_MAJOR_VERSION is what it was when libbson was compiled, bestie β don't be out here assuming runtime vibes π
β cute lil sign-off β β this was libbson version 2.5.6, dated Oct 09, 2026, page BSON_GET_MAJOR_VERSION(3). slay, bye π
π¦ 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