You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
spdlog/tests/includes.h

38 lines
919 B
C

9 years ago
#pragma once
3 years ago
#if defined(__GNUC__) && __GNUC__ == 12
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized" // Workaround for GCC 12
#endif
#include <catch2/catch_all.hpp>
3 years ago
#if defined(__GNUC__) && __GNUC__ == 12
#pragma GCC diagnostic pop
#endif
#include <stdlib.h>
8 years ago
#include <chrono>
9 years ago
#include <cstdio>
8 years ago
#include <exception>
9 years ago
#include <fstream>
#include <iomanip>
#include <iostream>
#include <ostream>
#include <sstream>
8 years ago
#include <string>
#include "utils.h"
9 years ago
#define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_DEBUG
#include "spdlog/details/fmt_helper.h"
#include "spdlog/pattern_formatter.h"
7 years ago
#include "spdlog/sinks/null_sink.h"
7 years ago
#include "spdlog/sinks/stdout_color_sinks.h"
#include "spdlog/spdlog.h"
// to_string_view
[[nodiscard]] constexpr spdlog::string_view_t to_string_view(const spdlog::memory_buf_t &buf) noexcept {
return spdlog::string_view_t{buf.data(), buf.size()};
}