diff options
Diffstat (limited to 'source/fud_assert.cpp')
-rw-r--r-- | source/fud_assert.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/fud_assert.cpp b/source/fud_assert.cpp index 966f44c..425826d 100644 --- a/source/fud_assert.cpp +++ b/source/fud_assert.cpp @@ -17,8 +17,8 @@ #include "fud_assert.hpp" -#include "fud_format.hpp" #include "fud_drain.hpp" +#include "fud_format.hpp" #include "fud_string_view.hpp" #include <cstdio> @@ -26,11 +26,11 @@ namespace fud { -struct BufferSink { +struct StdErrSink { DrainResult drain(StringView source); }; -DrainResult BufferSink::drain(StringView source) +DrainResult StdErrSink::drain(StringView source) { DrainResult result{0, FudStatus::Success}; if (source.m_data == nullptr) { @@ -52,7 +52,7 @@ DrainResult BufferSink::drain(StringView source) namespace impl { void assertFailMessage(const char* assertion, const std::source_location sourceLocation) { - BufferSink sink; + StdErrSink sink; const char* fileName = sourceLocation.file_name(); if (fileName == nullptr) { fileName = "Unknown file"; |