Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jlib
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
captainwong
jlib
Commits
b2860dd6
Commit
b2860dd6
authored
5 years ago
by
captainwong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update log2
parent
ddd2bb81
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
log2.h
jlib/log2.h
+3
-1
No files found.
jlib/log2.h
View file @
b2860dd6
...
...
@@ -35,8 +35,10 @@ public:
#ifndef _CRT_SECURE_NO_WARNINGS
#define _CRT_SECURE_NO_WARNINGS
#endif // _CRT_SECURE_NO_WARNINGS
#include <Windows.h>
#endif // _WIN32
#include <stdio.h>
#include "3rdparty/spdlog/spdlog.h"
#ifdef _WIN32
...
...
@@ -83,7 +85,7 @@ file_name)
sprintf_s
(
msg
,
"Log initialization failed: %s
\n
"
,
ex
.
what
());
MessageBoxA
(
nullptr
,
msg
,
"Error"
,
MB_ICONERROR
);
#else
std
::
cerr
<<
"Log initialization failed: "
<<
ex
.
what
()
<<
std
::
endl
;
fprintf
(
stderr
,
"Log initialization failed: %s
\n
"
,
ex
.
what
())
;
#endif
exit
(
0
);
}
...
...
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