version.hpp(3) Library Functions Manual version.hpp(3)

# [NAME](#NAME)

version.hpp - Macros to detect cereal version.

# [SYNOPSIS](#SYNOPSIS)

## [Macros](#Macros)

#define **CEREAL\_VERSION\_MAJOR** 1  
The major version. #define **CEREAL\_VERSION\_MINOR** 3  
The minor version. #define **CEREAL\_VERSION\_PATCH** 2  
The patch version. #define **CEREAL\_VERSION**  
The full version as a single number.

# [Detailed Description](#Detailed_Description)

Macros to detect cereal version.

These macros can assist in determining the version of cereal. Be warned that cereal is not guaranteed to be compatible across different versions. For more information on releases of cereal, see https://github.com/USCiLab/cereal/releases.

# [Macro Definition Documentation](#Macro_Definition_Documentation)

## [#define CEREAL\_VERSION](#_define_CEREAL_VERSION)

**Value:**

```
(CEREAL_VERSION_MAJOR * 10000 \
+ CEREAL_VERSION_MINOR * 100 \
+ CEREAL_VERSION_PATCH)
```

```

```

The full version as a single number.

# [Author](#Author)

Generated automatically by Doxygen for cereal from the source code.

Mon Oct 26 2026 20:39:03 cereal

---

Document: version.hpp(3) from cereal 1.3.2-r8 (Chainguard OS)
Source: https://github.com/USCiLab/cereal
