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
adc9598f
Commit
adc9598f
authored
Aug 29, 2010
by
Sam Lantinga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
While you can actually write to the error buffer, conceptually it's read-only.
parent
09ad8038
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
SDL_error.h
include/SDL_error.h
+1
-1
SDL_error.c
src/SDL_error.c
+2
-2
No files found.
include/SDL_error.h
View file @
adc9598f
...
@@ -41,7 +41,7 @@ extern "C" {
...
@@ -41,7 +41,7 @@ extern "C" {
/* Public functions */
/* Public functions */
extern
DECLSPEC
void
SDLCALL
SDL_SetError
(
const
char
*
fmt
,
...);
extern
DECLSPEC
void
SDLCALL
SDL_SetError
(
const
char
*
fmt
,
...);
extern
DECLSPEC
char
*
SDLCALL
SDL_GetError
(
void
);
extern
DECLSPEC
c
onst
c
har
*
SDLCALL
SDL_GetError
(
void
);
extern
DECLSPEC
void
SDLCALL
SDL_ClearError
(
void
);
extern
DECLSPEC
void
SDLCALL
SDL_ClearError
(
void
);
/**
/**
...
...
src/SDL_error.c
View file @
adc9598f
...
@@ -198,12 +198,12 @@ SDL_GetErrorMsg(char *errstr, unsigned int maxlen)
...
@@ -198,12 +198,12 @@ SDL_GetErrorMsg(char *errstr, unsigned int maxlen)
}
}
/* Available for backwards compatibility */
/* Available for backwards compatibility */
char
*
c
onst
c
har
*
SDL_GetError
(
void
)
SDL_GetError
(
void
)
{
{
static
char
errmsg
[
SDL_ERRBUFIZE
];
static
char
errmsg
[
SDL_ERRBUFIZE
];
return
((
char
*
)
SDL_GetErrorMsg
(
errmsg
,
SDL_ERRBUFIZE
)
);
return
SDL_GetErrorMsg
(
errmsg
,
SDL_ERRBUFIZE
);
}
}
void
void
...
...
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