PineForge unreleased
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
pine_source_key_test.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4
6// Compile-time seam only. The shipping adapter has the identity expression;
7// neither a run option nor an environment variable can select the mask.
8static constexpr std::uint64_t source_key_test_mask(std::uint64_t value) noexcept {
9#ifdef PINEFORGE_TEST_SOURCE_KEY_MASK
10 return value & PINEFORGE_TEST_SOURCE_KEY_MASK;
11#else
12 return value;
13#endif
14}
15} // namespace pineforge::source::detail
static constexpr std::uint64_t source_key_test_mask(std::uint64_t value) noexcept