nk
1.0.0
C++ Numerical Computing Runtime
Toggle main menu visibility
Loading...
Searching...
No Matches
stack_guard.hpp
1
#pragma once
2
3
#include <cstddef>
4
#include <string>
5
6
namespace
nk {
7
8
class
StackGuard
9
{
10
public
:
11
static
constexpr
size_t
SAFETY_MARGIN_BYTES = 64 * 1024;
// 64 KB
12
13
static
void
check(
const
char
*stage =
nullptr
);
14
15
explicit
StackGuard(
const
char
*stage =
nullptr
)
16
{
17
check(stage);
18
}
19
};
20
21
}
// namespace nk
src
core
include
nk
core
stack_guard.hpp
Generated by
1.17.0