41#ifndef SBG_DEBUG_LOG_CATEGORY
42 #define SBG_DEBUG_LOG_CATEGORY ("None")
73#define SBG_LOG_ERROR_CALL(errorCode, format, ...) sbgPlatformDebugLogMsg((const char*)__BASE_FILE__, (const char*)__func__, __LINE__, SBG_DEBUG_LOG_CATEGORY, SBG_DEBUG_LOG_TYPE_ERROR, errorCode, format, ##__VA_ARGS__)
75#if SBG_CONFIG_ENABLE_LOG_ERROR == 1
76 #define SBG_LOG_ERROR SBG_LOG_ERROR_CALL
78 #define SBG_LOG_ERROR(format, ...) ((void)sizeof(SBG_LOG_ERROR_CALL(format, ## __VA_ARGS__), 0))
90#define SBG_LOG_WARNING_CALL(errorCode, format, ...) sbgPlatformDebugLogMsg((const char*)__BASE_FILE__, (const char*)__func__, __LINE__, SBG_DEBUG_LOG_CATEGORY, SBG_DEBUG_LOG_TYPE_WARNING, errorCode, format, ##__VA_ARGS__)
92#if SBG_CONFIG_ENABLE_LOG_WARNING == 1
93 #define SBG_LOG_WARNING SBG_LOG_WARNING_CALL
95 #define SBG_LOG_WARNING(format, ...) ((void)sizeof(SBG_LOG_WARNING_CALL(format, ## __VA_ARGS__), 0))
106#define SBG_LOG_INFO_CALL(format, ...) sbgPlatformDebugLogMsg((const char*)__BASE_FILE__, (const char*)__func__, __LINE__, SBG_DEBUG_LOG_CATEGORY, SBG_DEBUG_LOG_TYPE_INFO, SBG_NO_ERROR, format, ##__VA_ARGS__)
108#if SBG_CONFIG_ENABLE_LOG_INFO == 1
109 #define SBG_LOG_INFO SBG_LOG_INFO_CALL
111 #define SBG_LOG_INFO(format, ...) ((void)sizeof(SBG_LOG_INFO_CALL(format, ## __VA_ARGS__), 0))
122#define SBG_LOG_DEBUG_CALL(format, ...) sbgPlatformDebugLogMsg((const char*)__BASE_FILE__, (const char*)__func__, __LINE__, SBG_DEBUG_LOG_CATEGORY, SBG_DEBUG_LOG_TYPE_DEBUG, SBG_NO_ERROR, format, ##__VA_ARGS__)
124#if SBG_CONFIG_ENABLE_LOG_DEBUG == 1
125 #define SBG_LOG_DEBUG SBG_LOG_DEBUG_CALL
127 #define SBG_LOG_DEBUG(format, ...) ((void)sizeof(SBG_LOG_DEBUG_CALL(format, ## __VA_ARGS__), 0))
void sbgDebugHexDump(const char *pPrefix, const void *pBuffer, size_t size)
_SbgDebugLogType
Definition sbgDebug.h:53
@ SBG_DEBUG_LOG_TYPE_DEBUG
Definition sbgDebug.h:57
@ SBG_DEBUG_LOG_TYPE_ERROR
Definition sbgDebug.h:54
@ SBG_DEBUG_LOG_TYPE_WARNING
Definition sbgDebug.h:55
@ SBG_DEBUG_LOG_TYPE_INFO
Definition sbgDebug.h:56
SBG_INLINE const char * sbgDebugLogTypeToStr(SbgDebugLogType logType)
Definition sbgDebug.h:140
enum _SbgDebugLogType SbgDebugLogType
Header file that contains all common definitions.
#define SBG_INLINE
Definition sbgDefines.h:227