1 | #pragma once |
---|---|
2 | |
3 | namespace duckdb { |
4 | |
5 | template <bool ENABLED> |
6 | struct MemorySafety { |
7 | #ifdef DEBUG |
8 | // In DEBUG mode safety is always on |
9 | static constexpr bool enabled = true; |
10 | #else |
11 | static constexpr bool enabled = ENABLED; |
12 | #endif |
13 | }; |
14 | |
15 | } // namespace duckdb |
16 |