Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
vkd3d
Manage
Activity
Members
Labels
Plan
Wiki
Bugzilla
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
wine
vkd3d
Commits
97c7bc0a
Commit
97c7bc0a
authored
7 years ago
by
Józef Kucia
Browse files
Options
Downloads
Patches
Plain Diff
libs/vkd3d-common: Provide access to current debug level.
parent
5808c280
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/private/vkd3d_debug.h
+4
-0
4 additions, 0 deletions
include/private/vkd3d_debug.h
libs/vkd3d-common/debug.c
+1
-1
1 addition, 1 deletion
libs/vkd3d-common/debug.c
with
5 additions
and
1 deletion
include/private/vkd3d_debug.h
+
4
−
0
View file @
97c7bc0a
...
...
@@ -30,6 +30,8 @@ enum vkd3d_dbg_level
VKD3D_DBG_LEVEL_TRACE
,
};
enum
vkd3d_dbg_level
vkd3d_dbg_get_level
(
void
)
DECLSPEC_HIDDEN
;
void
vkd3d_dbg_printf
(
enum
vkd3d_dbg_level
level
,
const
char
*
function
,
const
char
*
fmt
,
...)
VKD3D_PRINTF_FUNC
(
3
,
4
)
DECLSPEC_HIDDEN
;
...
...
@@ -50,6 +52,8 @@ const char *debugstr_w(const WCHAR *wstr) DECLSPEC_HIDDEN;
#define FIXME VKD3D_DBG_LOG(FIXME)
#define ERR VKD3D_DBG_LOG(ERR)
#define TRACE_ON() (vkd3d_dbg_get_level() == VKD3D_DBG_LEVEL_TRACE)
static
inline
const
char
*
debugstr_guid
(
const
GUID
*
guid
)
{
if
(
!
guid
)
...
...
This diff is collapsed.
Click to expand it.
libs/vkd3d-common/debug.c
+
1
−
1
View file @
97c7bc0a
...
...
@@ -37,7 +37,7 @@ static const char *debug_level_names[] =
/* VKD3D_DBG_LEVEL_TRACE */
"trace"
,
};
static
enum
vkd3d_dbg_level
vkd3d_dbg_get_level
(
void
)
enum
vkd3d_dbg_level
vkd3d_dbg_get_level
(
void
)
{
static
unsigned
int
level
=
~
0u
;
const
char
*
vkd3d_debug
;
...
...
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