SDL_kitchensink
Loading...
Searching...
No Matches
kiterror.h
Go to the documentation of this file.
1#ifndef KITERROR_H
2#define KITERROR_H
3
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17
23KIT_API const char* Kit_GetError();
24
31KIT_API void Kit_SetError(const char* fmt, ...);
32
37
38#ifdef __cplusplus
39}
40#endif
41
42#endif // KITERROR_H
Public API configurations.
#define KIT_API
Definition kitconfig.h:30
KIT_API void Kit_SetError(const char *fmt,...)
Sets the error message. This should really only be used by the library.
KIT_API const char * Kit_GetError()
Returns the latest error. This is set by SDL_kitchensink library functions on error.
KIT_API void Kit_ClearError()
Clears latest error message. After this, Kit_GetError() will return NULL.