Fixed include order and example
This commit is contained in:
parent
6bcb422c80
commit
bb3dc87953
@ -7,15 +7,10 @@
|
|||||||
//
|
//
|
||||||
//
|
//
|
||||||
|
|
||||||
//#include "spdlog/spdlog.h"
|
|
||||||
#include "spdlog/logger.h"
|
#include "spdlog/spdlog.h"
|
||||||
//#include "spdlog/sinks/stdout_color_sinks.h"
|
|
||||||
int main(int, char *[])
|
int main(int, char *[]) {
|
||||||
{
|
int i = 123;
|
||||||
spdlog::logger *l = nullptr;
|
spdlog::info("HELLO STATIC! {}", i);
|
||||||
const int i = 123;
|
|
||||||
l->info("HELLO STATIC! {}", i);
|
|
||||||
l->info("HELLO STATIC! {}", "GABI");
|
|
||||||
l->info("HELLO STATIC! {} {}", "GABI", i);
|
|
||||||
l->warn("HELLO STATIC! {} {}", "GABI", i);
|
|
||||||
}
|
}
|
@ -19,7 +19,6 @@
|
|||||||
#include <locale>
|
#include <locale>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "spdlog/fmt/fmt.h"
|
|
||||||
|
|
||||||
#ifdef SPDLOG_STATIC_LIB
|
#ifdef SPDLOG_STATIC_LIB
|
||||||
#undef SPDLOG_HEADER_ONLY
|
#undef SPDLOG_HEADER_ONLY
|
||||||
@ -29,6 +28,8 @@
|
|||||||
#define SPDLOG_INLINE inline
|
#define SPDLOG_INLINE inline
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "spdlog/fmt/fmt.h"
|
||||||
|
|
||||||
// visual studio upto 2013 does not support noexcept nor constexpr
|
// visual studio upto 2013 does not support noexcept nor constexpr
|
||||||
#if defined(_MSC_VER) && (_MSC_VER < 1900)
|
#if defined(_MSC_VER) && (_MSC_VER < 1900)
|
||||||
#define SPDLOG_NOEXCEPT throw()
|
#define SPDLOG_NOEXCEPT throw()
|
||||||
|
Loading…
Reference in New Issue
Block a user