TARAXA
static_init.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <sodium/core.h>
4
5
#include "
common/util.hpp
"
6
7
namespace
taraxa
{
8
9
inline
void
static_init
() {
10
if
(sodium_init() == -1) {
11
throw
std::runtime_error(
"libsodium init failure"
);
12
}
13
}
14
15
}
// namespace taraxa
taraxa
Definition:
config.hpp:8
taraxa::static_init
void static_init()
Definition:
static_init.hpp:9
util.hpp
libraries
common
include
common
static_init.hpp
Generated by
1.9.1