18#ifndef __VSF_SDL2_LOG_H__
19#define __VSF_SDL2_LOG_H__
23#include "../../vsf_sdl2_cfg.h"
25#if VSF_USE_SDL2 == ENABLED
40#define SDL_LogMessage(__category, __prio, __fmt, ...) \
41 __SDL_LogMessage(__prio, (__category), (__fmt), ##__VA_ARGS__)
42#define SDL_Log(...) __SDL_LogMessage(SDL_LOG_PRIORITY_INFO, 0, __VA_ARGS__)
43#define SDL_LogInfo(...) __SDL_LogMessage(SDL_LOG_PRIORITY_INFO, __VA_ARGS__)
44#define SDL_LogError(...) __SDL_LogMessage(SDL_LOG_PRIORITY_ERROR, __VA_ARGS__)
45#define SDL_LogCritical(...) __SDL_LogMessage(SDL_LOG_PRIORITY_ERROR, __VA_ARGS__)
46#define SDL_LogDebug(...) __SDL_LogMessage(SDL_LOG_PRIORITY_DEBUG, __VA_ARGS__)
47#define SDL_LogWarn(...) __SDL_LogMessage(SDL_LOG_PRIORITY_WARN, __VA_ARGS__)
48#define SDL_LogVerbose(...) __SDL_LogMessage(SDL_LOG_PRIORITY_INFO, __VA_ARGS__)
SDL_LogPriority
Definition SDL_log.h:64
@ SDL_LOG_PRIORITY_INFO
Definition SDL_log.h:67
@ SDL_LOG_PRIORITY_CRITICAL
Definition SDL_log.h:70
@ SDL_LOG_PRIORITY_VERBOSE
Definition SDL_log.h:65
@ SDL_LOG_PRIORITY_DEBUG
Definition SDL_log.h:66
@ SDL_LOG_PRIORITY_ERROR
Definition SDL_log.h:69
@ SDL_LOG_PRIORITY_WARN
Definition SDL_log.h:68
void __SDL_LogMessage(SDL_LogPriority priority, int category, const char *fmt,...)
Definition vsf_sdl2.c:152
SDL_LogCategory
Definition SDL_log.h:52
@ SDL_LOG_CATEGORY_ERROR
Definition SDL_log.h:54
@ SDL_LOG_CATEGORY_RENDER
Definition SDL_log.h:59
@ SDL_LOG_CATEGORY_INPUT
Definition SDL_log.h:60
@ SDL_LOG_CATEGORY_TEST
Definition SDL_log.h:61
@ SDL_LOG_CATEGORY_SYSTEM
Definition SDL_log.h:56
@ SDL_LOG_CATEGORY_APPLICATION
Definition SDL_log.h:53
@ SDL_LOG_CATEGORY_AUDIO
Definition SDL_log.h:57
@ SDL_LOG_CATEGORY_ASSERT
Definition SDL_log.h:55
@ SDL_LOG_CATEGORY_VIDEO
Definition SDL_log.h:58
u8 category
Definition ieee80211.h:66
@ VSF_TRACE_DEBUG
Definition vsf_trace.h:141
@ VSF_TRACE_WARNING
Definition vsf_trace.h:140
@ VSF_TRACE_ERROR
Definition vsf_trace.h:138
@ VSF_TRACE_INFO
Definition vsf_trace.h:139