| 123456789101112131415161718192021222324 |
- #pragma once
- #include <span>
- #include "../../../patterns/registry.h"
- #include "../assert_handler.h"
- namespace sunrise::client::targets::game::assert_handler {
- // clang-format off
- /**
- * Derives the assert handler setter and slot from the setter copies and the assert sites that read
- * it.
- * @param image Executable ranges from the main game image.
- * @param output Receives the setter, slot and handler currently installed in it.
- * @return True when one candidate wins the vote by the required margin.
- */
- // clang-format on
- [[nodiscard]] bool derive(std::span<const patterns::ImageRange> image, Targets& output) noexcept;
- /** @param targets Validated assert table published without failure. */
- void publish(const Targets& targets) noexcept;
- } // namespace sunrise::client::targets::game::assert_handler
|