Fix(tweakme): SPDLOG_FUNCTION

- Uncommenting SPDLOG_FUNCTION will make MSVC fail to compile:
    __PRETTY_FUNCTION__ is shown in intellisense but it's not available at compile time
    https://stackoverflow.com/questions/48857887/pretty-function-in-visual-c
This commit is contained in:
Light 2021-11-19 09:30:22 +03:30 committed by GitHub
parent 94d2a84995
commit 17f21df441
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -127,5 +127,9 @@
// __PRETTY_FUNCTION__ might be nicer in clang/gcc, and __FUNCTION__ in msvc. // __PRETTY_FUNCTION__ might be nicer in clang/gcc, and __FUNCTION__ in msvc.
// Defaults to __FUNCTION__ (should work on all compilers) if not defined. // Defaults to __FUNCTION__ (should work on all compilers) if not defined.
// //
// #define SPDLOG_FUNCTION __PRETTY_FUNCTION__ // #ifdef __PRETTY_FUNCTION__
// # define SPDLOG_FUNCTION __PRETTY_FUN CTION__
// #else
// # define SPDLOG_FUNCTION __FUNCTION__
// #endif
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////