SDL 3.0
SDL_test_log.h File Reference
+ Include dependency graph for SDL_test_log.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void SDLTest_Log (SDL_PRINTF_FORMAT_STRING const char *fmt,...) SDL_PRINTF_VARARG_FUNC(1)
 
void SDLTest_LogEscapedString (const char *prefix, const void *buffer, size_t size)
 
void SDLTest_LogError (SDL_PRINTF_FORMAT_STRING const char *fmt,...) SDL_PRINTF_VARARG_FUNC(1)
 

Function Documentation

◆ SDLTest_Log()

void SDLTest_Log ( SDL_PRINTF_FORMAT_STRING const char * fmt,
... )

Logging related functions of SDL test framework.

This code is a part of the SDL test library, not the main SDL library. Prints given message with a timestamp in the TEST category and INFO priority.

Parameters
fmtMessage to be logged

◆ SDLTest_LogError()

void SDLTest_LogError ( SDL_PRINTF_FORMAT_STRING const char * fmt,
... )

Prints given message with a timestamp in the TEST category and the ERROR priority.

Parameters
fmtMessage to be logged

◆ SDLTest_LogEscapedString()

void SDLTest_LogEscapedString ( const char * prefix,
const void * buffer,
size_t size )

Prints given prefix and buffer. Non-printible characters in the raw data are substituted by printible alternatives.

Parameters
prefixPrefix message.
bufferRaw data to be escaped.
sizeNumber of bytes in buffer.