zdb.h File Reference

⬅
Macros
zdb.h File Reference

## Detailed Description

Include this interface in your C code to import the libzdb API.

## Macros
#define | LIBZDB_MAJOR 3
#define | LIBZDB_MINOR 4
#define | LIBZDB_REVISION 0
#define | LIBZDB_VERSION "3.4.0"
#define | LIBZDB_VERSION_NUMBER ((LIBZDB_MAJOR * 1000000) + (LIBZDB_MINOR * 1000) + LIBZDB_REVISION)
#define | valueOr(expr, default_value)

## Macro Definition Documentation

## ◆ LIBZDB_MAJOR

#define LIBZDB_MAJOR 3

## ◆ LIBZDB_MINOR

#define LIBZDB_MINOR 4

## ◆ LIBZDB_REVISION

#define LIBZDB_REVISION 0

## ◆ LIBZDB_VERSION

#define LIBZDB_VERSION "3.4.0"

## ◆ LIBZDB_VERSION_NUMBER

#define LIBZDB_VERSION_NUMBER ((LIBZDB_MAJOR * 1000000) + (LIBZDB_MINOR * 1000) + LIBZDB_REVISION)

## ◆ valueOr

#define valueOr | ( |  | expr,
|  |  | default_value )

Value:
({ \
__typeof__(expr) _t = (expr); \
(_t < 0 || _t == 0) ? (default_value) : _t; \
})

Copyright © Tildeslash Ltd. All rights reserved.