Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
VkCV Framework
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Vulkan2021
VkCV Framework
Commits
f0019887
Verified
Commit
f0019887
authored
3 years ago
by
Tobias Frisch
Browse files
Options
Downloads
Patches
Plain Diff
[
#41
] Classical MSVC extra branching
Signed-off-by:
Tobias Frisch
<
tfrisch@uni-koblenz.de
>
parent
fb9cc784
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!59
Resolve "Consistent logging"
Pipeline
#25634
passed
3 years ago
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/vkcv/Logger.hpp
+25
-17
25 additions, 17 deletions
include/vkcv/Logger.hpp
with
25 additions
and
17 deletions
include/vkcv/Logger.hpp
+
25
−
17
View file @
f0019887
...
@@ -33,24 +33,32 @@ namespace vkcv {
...
@@ -33,24 +33,32 @@ namespace vkcv {
}
}
#ifndef NDEBUG
#ifndef NDEBUG
#ifndef VKCV_DEBUG_MESSAGE_LEN
#define VKCV_DEBUG_MESSAGE_LEN 1024
#endif
#ifdef _MSC_VER
#define __PRETTY_FUNCTION__ __FUNCSIG__
#endif
#define vkcv_log(level, ...) { \
#define vkcv_log(level, ...) { \
char output_message [1024]; \
char output_message [ \
\
VKCV_DEBUG_MESSAGE_LEN \
sprintf( \
]; \
output_message, \
std::snprintf( \
__VA_ARGS__ \
output_message, \
); \
VKCV_DEBUG_MESSAGE_LEN, \
\
__VA_ARGS__ \
std::fprintf( \
); \
getLogOutput(level), \
std::fprintf( \
"[%s]: %s [%s, line %d: %s]\n", \
getLogOutput(level), \
vkcv::getLogName(level), \
"[%s]: %s [%s, line %d: %s]\n", \
output_message, \
vkcv::getLogName(level), \
__FILE__, \
output_message, \
__LINE__, \
__FILE__, \
__PRETTY_FUNCTION__ \
__LINE__, \
); \
__PRETTY_FUNCTION__ \
); \
}
}
#else
#else
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment