Version(3)

πŸ’– NAME πŸ’–

Version β€” Version Macros, bestie!! ✨

Okay so real quick before we dive in: this is the Version(3) page from the Library Functions Manual, and it's literally just the ✨version macros✨ for the library. All the numbers, all the stringifier magic, all of it. Let's goooo πŸ¦‹


🌸 SYNOPSIS 🌸

πŸŽ€ Macros πŸŽ€

#define MDB_VERSION_MAJOR   0
#define MDB_VERSION_MINOR   9
#define MDB_VERSION_PATCH   35
#define MDB_VERINT(a,  b,  c)
#define MDB_VERSION_FULL
    MDB_VERINT(MDB_VERSION_MAJOR,MDB_VERSION_MINOR,MDB_VERSION_PATCH)
#define MDB_VERSION_DATE   'Jan 27, 2026'
#define MDB_VERSTR(a,  b,  c,  d)
#define MDB_VERFOO(a,  b,  c,  d)
#define MDB_VERSION_STRING
    MDB_VERFOO(MDB_VERSION_MAJOR,MDB_VERSION_MINOR,MDB_VERSION_PATCH,MDB_VERSION_DATE)

πŸ¦‹ Detailed Description πŸ¦‹

Not me pulling up this section and it's... empty πŸ’€ That's literally it, that's the whole vibe. No extra prose here, the macros are doing all the talking. Moving on bestie 🫢


πŸ’… Macro Definition Documentation πŸ’…

⭐ #define MDB_VERSION_MAJOR 0

The library major version. Iconic, and currently 0 πŸŽ€

⭐ #define MDB_VERSION_MINOR 9

The library minor version. Right now it's sitting at 9 ✨

⭐ #define MDB_VERSION_PATCH 35

The library patch version. Currently 35 πŸ’–

⭐ #define MDB_VERINT( a, b, c)

Value:

(((a) << 24) | ((b) << 16) | (c))

This one takes the args a, b, c and smooshes them into a single integer so you can do easy version comparisons. Lowkey genius 🧚

⭐ #define MDB_VERSION_FULL

Value:

MDB_VERINT(MDB_VERSION_MAJOR,MDB_VERSION_MINOR,MDB_VERSION_PATCH)

The full library version as a single integer. One number, all the info, main character energy πŸ‘‘

⭐ #define MDB_VERSION_DATE 'Jan 27, 2026'

The release date of this library version. Mark your calendars bestie, 'Jan 27, 2026' πŸ“

⭐ #define MDB_VERSTR( a, b, c, d)

Value:

"LMDB " #a "." #b "." #c ": (" d ")"

A stringifier for the version info. It takes the numbers and the date and turns them into an actual cute lil string πŸ’…

⭐ #define MDB_VERFOO( a, b, c, d)

Value:

MDB_VERSTR(a,b,c,d)

A helper for the stringifier macro. Just doing the behind-the-scenes work so MDB_VERSTR can shine ✨

⭐ #define MDB_VERSION_STRING

Value:

MDB_VERFOO(MDB_VERSION_MAJOR,MDB_VERSION_MINOR,MDB_VERSION_PATCH,MDB_VERSION_DATE)

The full library version as a C string. Yes bestie, this is the one you actually print 🌈


πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for LMDB from the source code. Not me being an auto-generated baddie, we love a hands-free moment πŸ™ˆ


That's the whole page, bestie, no cap πŸ’–

LMDB Β· Version(3) β€” mwah, take care of yourself, drink some water, and go check your version macros 🫢✨

πŸ“¦ where this page comes from