Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
S
spdlog
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
spdlog
Commits
97f9cc4b
Commit
97f9cc4b
authored
Apr 05, 2019
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some cleanup
parent
7ab6fd9d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
12 deletions
+9
-12
example.cpp
example/example.cpp
+3
-1
common.h
include/spdlog/common.h
+6
-11
No files found.
example/example.cpp
View file @
97f9cc4b
...
...
@@ -16,7 +16,8 @@ int main(int, char *[])
{
int
x
=
4
;
spdlog
::
info
(
"HELLO {}"
,
"st at ic"
);
spdlog
::
warn
(
"HELLO {}*{} = {}"
,
x
,
x
,
x
*
x
);
spdlog
::
warn
(
"HELLO {} *{} = {}"
,
x
,
x
,
x
*
x
);
/*auto *l = get_logger();
l->info("HEllo {}", "HG FS");*/
}
\ No newline at end of file
include/spdlog/common.h
View file @
97f9cc4b
...
...
@@ -13,6 +13,7 @@
#include <memory>
#include <stdexcept>
#include <string>
#include <type_traits>
#if defined(SPDLOG_WCHAR_FILENAMES) || defined(SPDLOG_WCHAR_TO_UTF8_SUPPORT)
#include <codecvt>
...
...
@@ -27,7 +28,6 @@
#define SPDLOG_INLINE
#endif
// visual studio upto 2013 does not support noexcept nor constexpr
#if defined(_MSC_VER) && (_MSC_VER < 1900)
#define SPDLOG_NOEXCEPT throw()
...
...
@@ -214,15 +214,10 @@ private:
struct
source_loc
{
SPDLOG_CONSTEXPR
source_loc
()
:
filename
{
""
}
,
line
{
0
}
,
funcname
{
""
}
{
}
SPDLOG_CONSTEXPR
source_loc
()
=
default
;
SPDLOG_CONSTEXPR
source_loc
(
const
char
*
filename_in
,
int
line_in
,
const
char
*
funcname_in
)
:
filename
{
filename_in
}
,
line
{
static_cast
<
uint32_t
>
(
line_in
)
}
,
line
{
line_in
}
,
funcname
{
funcname_in
}
{
}
...
...
@@ -231,9 +226,9 @@ struct source_loc
{
return
line
==
0
;
}
const
char
*
filename
;
uint32_t
line
;
const
char
*
funcname
;
const
char
*
filename
{
nullptr
}
;
int
line
{
0
}
;
const
char
*
funcname
{
nullptr
}
;
};
namespace
details
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment