Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libSDL
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
libSDL
Commits
234bc0aa
Commit
234bc0aa
authored
Feb 19, 2011
by
Sam Lantinga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added missing log debug function
parent
91442746
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
SDL_log.h
include/SDL_log.h
+5
-0
SDL_log.c
src/SDL_log.c
+10
-0
No files found.
include/SDL_log.h
View file @
234bc0aa
...
@@ -143,6 +143,11 @@ extern DECLSPEC void SDLCALL SDL_Log(const char *fmt, ...);
...
@@ -143,6 +143,11 @@ extern DECLSPEC void SDLCALL SDL_Log(const char *fmt, ...);
*/
*/
extern
DECLSPEC
void
SDLCALL
SDL_LogVerbose
(
int
category
,
const
char
*
fmt
,
...);
extern
DECLSPEC
void
SDLCALL
SDL_LogVerbose
(
int
category
,
const
char
*
fmt
,
...);
/**
* \brief Log a message with SDL_LOG_PRIORITY_DEBUG
*/
extern
DECLSPEC
void
SDLCALL
SDL_LogDebug
(
int
category
,
const
char
*
fmt
,
...);
/**
/**
* \brief Log a message with SDL_LOG_PRIORITY_INFO
* \brief Log a message with SDL_LOG_PRIORITY_INFO
*/
*/
...
...
src/SDL_log.c
View file @
234bc0aa
...
@@ -174,6 +174,16 @@ SDL_LogVerbose(int category, const char *fmt, ...)
...
@@ -174,6 +174,16 @@ SDL_LogVerbose(int category, const char *fmt, ...)
va_end
(
ap
);
va_end
(
ap
);
}
}
void
SDL_LogDebug
(
int
category
,
const
char
*
fmt
,
...)
{
va_list
ap
;
va_start
(
ap
,
fmt
);
SDL_LogMessageV
(
category
,
SDL_LOG_PRIORITY_DEBUG
,
fmt
,
ap
);
va_end
(
ap
);
}
void
void
SDL_LogInfo
(
int
category
,
const
char
*
fmt
,
...)
SDL_LogInfo
(
int
category
,
const
char
*
fmt
,
...)
{
{
...
...
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