From f9bc3c9d1834cb8bd5f872b749b057c33e8b0102 Mon Sep 17 00:00:00 2001 From: BobTheBob <32057864+BobTheBob9@users.noreply.github.com> Date: Wed, 24 Aug 2022 00:32:31 +0100 Subject: Adjust folder structure (#242) * Adjust folder structure * change launcher directory name --- .../include/spdlog/sinks/msvc_sink.h | 49 ---------------------- 1 file changed, 49 deletions(-) delete mode 100644 NorthstarDedicatedTest/include/spdlog/sinks/msvc_sink.h (limited to 'NorthstarDedicatedTest/include/spdlog/sinks/msvc_sink.h') diff --git a/NorthstarDedicatedTest/include/spdlog/sinks/msvc_sink.h b/NorthstarDedicatedTest/include/spdlog/sinks/msvc_sink.h deleted file mode 100644 index 8fec428d..00000000 --- a/NorthstarDedicatedTest/include/spdlog/sinks/msvc_sink.h +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright(c) 2016 Alexander Dalshov. -// Distributed under the MIT License (http://opensource.org/licenses/MIT) - -#pragma once - -#if defined(_WIN32) - -#include -#include - -#include -#include - - -// Avoid including windows.h (https://stackoverflow.com/a/30741042) -extern "C" __declspec(dllimport) void __stdcall OutputDebugStringA(const char *lpOutputString); - -namespace spdlog { -namespace sinks { -/* - * MSVC sink (logging using OutputDebugStringA) - */ -template -class msvc_sink : public base_sink -{ -public: - msvc_sink() = default; - -protected: - void sink_it_(const details::log_msg &msg) override - { - memory_buf_t formatted; - base_sink::formatter_->format(msg, formatted); - OutputDebugStringA(fmt::to_string(formatted).c_str()); - } - - void flush_() override {} -}; - -using msvc_sink_mt = msvc_sink; -using msvc_sink_st = msvc_sink; - -using windebug_sink_mt = msvc_sink_mt; -using windebug_sink_st = msvc_sink_st; - -} // namespace sinks -} // namespace spdlog - -#endif -- cgit v1.2.3