SDL_kitchensink
Loading...
Searching...
No Matches
Functions
kiterror.h File Reference

Error handling functions. More...

#include "kitchensink/kitconfig.h"

Go to the source code of this file.

Functions

KIT_API const char * Kit_GetError ()
 Returns the latest error. This is set by SDL_kitchensink library functions on error.
 
KIT_API void Kit_SetError (const char *fmt,...)
 Sets the error message. This should really only be used by the library.
 
KIT_API void Kit_ClearError ()
 Clears latest error message. After this, Kit_GetError() will return NULL.
 

Detailed Description

Error handling functions.

Author
Tuomas Virtanen
Date
2018-06-25

Function Documentation

◆ Kit_ClearError()

KIT_API void Kit_ClearError ( )

Clears latest error message. After this, Kit_GetError() will return NULL.

◆ Kit_GetError()

KIT_API const char * Kit_GetError ( )

Returns the latest error. This is set by SDL_kitchensink library functions on error.

Returns
Error message or NULL

◆ Kit_SetError()

KIT_API void Kit_SetError ( const char *  fmt,
  ... 
)

Sets the error message. This should really only be used by the library.

Parameters
fmtMessage format
...Message arguments