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
2a7b9957
Commit
2a7b9957
authored
6 years ago
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added noexcept some function in common.h
parent
d0beac70
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
common.h
include/spdlog/common.h
+3
-3
No files found.
include/spdlog/common.h
View file @
2a7b9957
...
...
@@ -85,17 +85,17 @@ static const char *level_names[] SPDLOG_LEVEL_NAMES;
static
const
char
*
short_level_names
[]{
"T"
,
"D"
,
"I"
,
"W"
,
"E"
,
"C"
,
"O"
};
inline
const
char
*
to_c_str
(
spdlog
::
level
::
level_enum
l
)
inline
const
char
*
to_c_str
(
spdlog
::
level
::
level_enum
l
)
noexcept
{
return
level_names
[
l
];
}
inline
const
char
*
to_short_c_str
(
spdlog
::
level
::
level_enum
l
)
inline
const
char
*
to_short_c_str
(
spdlog
::
level
::
level_enum
l
)
noexcept
{
return
short_level_names
[
l
];
}
inline
spdlog
::
level
::
level_enum
from_str
(
const
std
::
string
&
name
)
inline
spdlog
::
level
::
level_enum
from_str
(
const
std
::
string
&
name
)
noexcept
{
static
std
::
unordered_map
<
std
::
string
,
level_enum
>
name_to_level
=
// map string->level
{{
level_names
[
0
],
level
::
trace
},
// trace
...
...
This diff is collapsed.
Click to expand it.
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