2026-08-12 13:19:12 +03:00
|
|
|
#include <contracts>
|
2026-08-12 14:07:12 +03:00
|
|
|
#include <cstdio>
|
2026-08-12 13:19:12 +03:00
|
|
|
#include <cstdlib>
|
|
|
|
|
|
2026-08-12 14:07:12 +03:00
|
|
|
[[maybe_unused]] static void handle_contract_violation(const std::contracts::contract_violation& violation) {
|
|
|
|
|
std::fprintf(stderr, "contract violation: %s\n", violation.comment());
|
2026-08-12 13:19:12 +03:00
|
|
|
std::abort();
|
|
|
|
|
}
|