3#include "Common/debug.h"
16template<std::
size_t BUFFER_BYTES = 16 * 1024>
21 -> std::unique_ptr<TStackSentinel>;
27 static std::uint8_t genValue(std::size_t byteIdx);
29 std::uint8_t m_stackBuffer[BUFFER_BYTES];
32template<std::
size_t BUFFER_BYTES>
34-> std::unique_ptr<TStackSentinel>
36 return std::make_unique<TStackSentinel>();
39template<std::
size_t BUFFER_BYTES>
42 for(std::size_t i = 0; i < BUFFER_BYTES; ++i)
44 m_stackBuffer[i] = genValue(i);
48template<std::
size_t BUFFER_BYTES>
51 for(std::size_t i = 0; i < BUFFER_BYTES; ++i)
53 if(m_stackBuffer[i] != genValue(i))
60template<std::
size_t BUFFER_BYTES>
Definition TStackSentinel.h:18
TStackSentinel()
Definition TStackSentinel.h:40
static auto makeUnique() -> std::unique_ptr< TStackSentinel >
Definition TStackSentinel.h:33
~TStackSentinel()
Definition TStackSentinel.h:49
The root for all renderer implementations.
Definition EEngineProject.h:6