Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
96742389
Commit
96742389
authored
Aug 30, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Add va_list version of the debug printf functions.
parent
4d0468e3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
6 deletions
+24
-6
debug.h
include/wine/debug.h
+24
-6
No files found.
include/wine/debug.h
View file @
96742389
...
...
@@ -168,28 +168,46 @@ extern int __cdecl __wine_dbg_header( enum __wine_debug_class cls, struct __wine
# define __wine_dbg_cdecl
#endif
static
const
char
*
__wine_dbg_cdecl
wine_dbg_vsprintf
(
const
char
*
format
,
va_list
args
)
__WINE_PRINTF_ATTR
(
1
,
0
);
static
inline
const
char
*
__wine_dbg_cdecl
wine_dbg_vsprintf
(
const
char
*
format
,
va_list
args
)
{
char
buffer
[
200
];
vsnprintf
(
buffer
,
sizeof
(
buffer
),
format
,
args
);
return
__wine_dbg_strdup
(
buffer
);
}
static
const
char
*
__wine_dbg_cdecl
wine_dbg_sprintf
(
const
char
*
format
,
...
)
__WINE_PRINTF_ATTR
(
1
,
2
);
static
inline
const
char
*
__wine_dbg_cdecl
wine_dbg_sprintf
(
const
char
*
format
,
...
)
{
c
har
buffer
[
200
]
;
c
onst
char
*
ret
;
va_list
args
;
va_start
(
args
,
format
);
vsnprintf
(
buffer
,
sizeof
(
buffer
),
format
,
args
);
ret
=
wine_dbg_vsprintf
(
format
,
args
);
va_end
(
args
);
return
__wine_dbg_strdup
(
buffer
);
return
ret
;
}
static
int
__wine_dbg_cdecl
wine_dbg_vprintf
(
const
char
*
format
,
va_list
args
)
__WINE_PRINTF_ATTR
(
1
,
0
);
static
inline
int
__wine_dbg_cdecl
wine_dbg_vprintf
(
const
char
*
format
,
va_list
args
)
{
char
buffer
[
1024
];
vsnprintf
(
buffer
,
sizeof
(
buffer
),
format
,
args
);
return
__wine_dbg_output
(
buffer
);
}
static
int
__wine_dbg_cdecl
wine_dbg_printf
(
const
char
*
format
,
...
)
__WINE_PRINTF_ATTR
(
1
,
2
);
static
inline
int
__wine_dbg_cdecl
wine_dbg_printf
(
const
char
*
format
,
...
)
{
char
buffer
[
1024
]
;
int
ret
;
va_list
args
;
va_start
(
args
,
format
);
vsnprintf
(
buffer
,
sizeof
(
buffer
),
format
,
args
);
ret
=
wine_dbg_vprintf
(
format
,
args
);
va_end
(
args
);
return
__wine_dbg_output
(
buffer
)
;
return
ret
;
}
static
int
__wine_dbg_cdecl
wine_dbg_log
(
enum
__wine_debug_class
cls
,
...
...
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