zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
SDL_test_log.c File Reference
#include "SDL_config.h"
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include "SDL.h"
#include "SDL_test.h"

Go to the source code of this file.

Macros

#define _CRT_SECURE_NO_WARNINGS
 

Functions

void SDLTest_Log (const char *fmt,...)
 Prints given message with a timestamp in the TEST category and INFO priority. More...
 
void SDLTest_LogError (const char *fmt,...)
 Prints given message with a timestamp in the TEST category and the ERROR priority. More...
 
char * SDLTest_TimestampToString (const time_t timestamp)
 

Macro Definition Documentation

#define _CRT_SECURE_NO_WARNINGS

Definition at line 29 of file SDL_test_log.c.

Function Documentation

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

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

Parameters
fmtMessage to be logged

Definition at line 71 of file SDL_test_log.c.

References SDL_LOG_CATEGORY_TEST, SDL_LOG_PRIORITY_INFO, SDL_LogMessage(), SDL_memset(), SDL_vsnprintf(), SDLTEST_MAX_LOGMESSAGE_LENGTH, and SDLTest_TimestampToString().

Referenced by SDLTest_AssertCheck(), SDLTest_AssertPass(), SDLTest_LogAssertSummary(), SDLTest_LogTestSuiteSummary(), SDLTest_RunSuites(), and SDLTest_RunTest().

void SDLTest_LogError ( const char *  fmt,
  ... 
)
char* SDLTest_TimestampToString ( const time_t  timestamp)

Definition at line 53 of file SDL_test_log.c.

References local, and SDL_memset().

Referenced by SDLTest_Log(), and SDLTest_LogError().