---
name: "mdb_Version"
section: "3"
platform: "linux"
package: "lmdb-doc"
version: "0.9.31-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/mdb_Version"
---

# mdb\_Version(3)

Version Macros

## NAME

Version - Version Macros

## SYNOPSIS

### Macros

\#define **MDB\_VERSION\_MAJOR**   0\
 \#define **MDB\_VERSION\_MINOR**   9\
 \#define **MDB\_VERSION\_PATCH**   31\
 \#define **MDB\_VERINT**(a,  b,  c)   (((a) \<\< 24) \| ((b) \<\< 16) \| (c))\
 \#define **MDB\_VERSION\_FULL**   	**MDB\_VERINT**(**MDB\_VERSION\_MAJOR**,**MDB\_VERSION\_MINOR**,**MDB\_VERSION\_PATCH**)\
 \#define **MDB\_VERSION\_DATE**   'July 10, 2023'\
 \#define **MDB\_VERSTR**(a,  b,  c,  d)   'LMDB ' #a '.' #b '.' #c ': (' d ')'\
 \#define **MDB\_VERFOO**(a,  b,  c,  d)   **MDB\_VERSTR**(a,b,c,d)\
 \#define **MDB\_VERSION\_STRING**   	**MDB\_VERFOO**(**MDB\_VERSION\_MAJOR**,**MDB\_VERSION\_MINOR**,**MDB\_VERSION\_PATCH**,**MDB\_VERSION\_DATE**)\

## Detailed Description

## Macro Definition Documentation

### #define MDB\_VERSION\_MAJOR 0

Library major version

### #define MDB\_VERSION\_MINOR 9

Library minor version

### #define MDB\_VERSION\_PATCH 31

Library patch version

### #define MDB\_VERINT(a, b, c) (((a) \<\< 24) \| ((b) \<\< 16) \| (c))

Combine args a,b,c into a single integer for easy version comparisons

### #define MDB\_VERSION\_FULL MDB\_VERINT(MDB\_VERSION\_MAJOR,MDB\_VERSION\_MINOR,MDB\_VERSION\_PATCH)

The full library version as a single integer

### #define MDB\_VERSION\_DATE 'July 10, 2023'

The release date of this library version

### #define MDB\_VERSTR(a, b, c, d) 'LMDB ' #a '.' #b '.' #c ': (' d ')'

A stringifier for the version info

### #define MDB\_VERFOO(a, b, c, d) MDB\_VERSTR(a,b,c,d)

A helper for the stringifier macro

### #define MDB\_VERSION\_STRING MDB\_VERFOO(MDB\_VERSION\_MAJOR,MDB\_VERSION\_MINOR,MDB\_VERSION\_PATCH,MDB\_VERSION\_DATE)

The full library version as a C string

## Author

Generated automatically by Doxygen for LMDB from the source code.
