41 #ifndef SBG_DEBUG_LOG_CATEGORY
42 #define SBG_DEBUG_LOG_CATEGORY ("None")
69 #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__)
71 #if SBG_CONFIG_ENABLE_LOG_ERROR == 1
72 #define SBG_LOG_ERROR SBG_LOG_ERROR_CALL
74 #define SBG_LOG_ERROR(format, ...) ((void)sizeof(SBG_LOG_ERROR_CALL(format, ## __VA_ARGS__), 0))
82 #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__)
84 #if SBG_CONFIG_ENABLE_LOG_WARNING == 1
85 #define SBG_LOG_WARNING SBG_LOG_WARNING_CALL
87 #define SBG_LOG_WARNING(format, ...) ((void)sizeof(SBG_LOG_WARNING_CALL(format, ## __VA_ARGS__), 0))
94 #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__)
96 #if SBG_CONFIG_ENABLE_LOG_INFO == 1
97 #define SBG_LOG_INFO SBG_LOG_INFO_CALL
99 #define SBG_LOG_INFO(format, ...) ((void)sizeof(SBG_LOG_INFO_CALL(format, ## __VA_ARGS__), 0))
106 #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__)
108 #if SBG_CONFIG_ENABLE_LOG_DEBUG == 1
109 #define SBG_LOG_DEBUG SBG_LOG_DEBUG_CALL
111 #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:124
enum _SbgDebugLogType SbgDebugLogType
Header file that contains all common definitions.
#define SBG_INLINE
Definition: sbgDefines.h:227