Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
version.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <cstddef>
4
5
namespace
bb
{
6
// Internal: Full string with sentinel prefix for binary patching by inject_version
7
extern
const
char
*
const
BB_VERSION_PLACEHOLDER
;
8
9
// The sentinel string length (used to compute offset to actual version)
10
constexpr
size_t
BB_VERSION_SENTINEL_LEN
= 29;
// strlen("BARRETENBERG_VERSION_SENTINEL")
11
12
// Public: Pointer to the actual version string (past the sentinel prefix)
13
// Use this wherever you need the version string
14
inline
const
char
*
BB_VERSION
=
BB_VERSION_PLACEHOLDER
+
BB_VERSION_SENTINEL_LEN
;
15
}
// namespace bb
bb
Entry point for Barretenberg command-line interface.
Definition
api.hpp:5
bb::BB_VERSION_SENTINEL_LEN
constexpr size_t BB_VERSION_SENTINEL_LEN
Definition
version.hpp:10
bb::BB_VERSION_PLACEHOLDER
const char *const BB_VERSION_PLACEHOLDER
Definition
version.cpp:10
bb::BB_VERSION
const char * BB_VERSION
Definition
version.hpp:14
src
barretenberg
common
version.hpp
Generated by
1.9.8