From 867a22c2a989b3f3a2bc47044226f5f9df6a59fd Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 5 Feb 2025 05:09:11 +0100 Subject: compat/assert: move internal functions to own namespace --- bench/critter.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bench/critter.cpp') diff --git a/bench/critter.cpp b/bench/critter.cpp index 418a4f9e..d8548452 100644 --- a/bench/critter.cpp +++ b/bench/critter.cpp @@ -1,4 +1,5 @@ #include "compat/debug.hpp" +#include "compat/assert.hpp" #include "compat/function2.hpp" #include "src/critter.hpp" #include "src/world.hpp" @@ -15,6 +16,7 @@ namespace floormat { namespace { +namespace fm_debug = floormat::debug::detail; using enum rotation; using fu2::function_view; using Function = function_view; @@ -137,7 +139,7 @@ bool run(world& w, const function_view& make_dt, if (b) [[likely]] return false; else - fm_emit_assert_fail("false", file, line); + fm_debug::emit_abort(file, line, "false"); }; for (i = 0; true; i++) -- cgit v1.2.3