sbgDebug.h
Go to the documentation of this file.
1 
23 #ifndef __SBG_DEBUG_H__
24 #define __SBG_DEBUG_H__
25 
26 #include "platform/sbgConfig.h"
27 
28 //----------------------------------------------------------------------//
29 //- Errors and warning definitions -//
30 //----------------------------------------------------------------------//
31 
35 typedef enum _SbgDebugLogType
36 {
42 
43 //----------------------------------------------------------------------//
44 //- Errors and warning macros -//
45 //----------------------------------------------------------------------//
46 
51 #if SBG_CONFIG_ENABLE_ASSERT == SBG_ENABLE
52  #define SBG_ASSERT(expression) SBG_PLATFORM_ASSERT(expression)
53 #else
54  #define SBG_ASSERT(expression) ((void)(expression))
55 #endif
56 
62 #if SBG_CONFIG_ENABLE_LOG_ERROR == SBG_ENABLE
63  #define SBG_LOG_ERROR(errorCode, format, ...) sbgPlatformDebugLogMsg((const char*)__BASE_FILE__, (const char*)__FUNCTION__, __LINE__, SBG_DEBUG_LOG_TYPE_ERROR, errorCode, format, ##__VA_ARGS__)
64 #else
65  #define SBG_LOG_ERROR(errorCode, format, ...) ((void)0)
66 #endif
67 
73 #if SBG_CONFIG_ENABLE_LOG_WARNING == SBG_ENABLE
74  #define SBG_LOG_WARNING(errorCode, format, ...) sbgPlatformDebugLogMsg((const char*)__BASE_FILE__, (const char*)__FUNCTION__, __LINE__, SBG_DEBUG_LOG_TYPE_WARNING, errorCode, format, ##__VA_ARGS__)
75 #else
76  #define SBG_LOG_WARNING(errorCode, format, ...) ((void)0)
77 #endif
78 
83 #if SBG_CONFIG_ENABLE_LOG_INFO == SBG_ENABLE
84  #define SBG_LOG_INFO(format, ...) sbgPlatformDebugLogMsg((const char*)__BASE_FILE__, (const char*)__FUNCTION__, __LINE__, SBG_DEBUG_LOG_TYPE_INFO, SBG_NO_ERROR, format, ##__VA_ARGS__)
85 #else
86  #define SBG_LOG_INFO(format, ...) ((void)0)
87 #endif
88 
92 #if SBG_CONFIG_ENABLE_LOG_VERBOSE == SBG_ENABLE
93  #define SBG_LOG_VERBOSE(format, ...) sbgPlatformDebugLogMsg((const char*)__BASE_FILE__, (const char*)__FUNCTION__, __LINE__, SBG_DEBUG_LOG_TYPE_VERBOSE, SBG_NO_ERROR, format, ##__VA_ARGS__)
94 #else
95  #define SBG_LOG_VERBOSE(format, ...) ((void)0)
96 #endif
97 
98 #endif /* __SBG_DEBUG_H__ */
_SbgDebugLogType
Definition: sbgDebug.h:35
Header file used to configure the framework.
enum _SbgDebugLogType SbgDebugLogType


sbg_driver
Author(s):
autogenerated on Sun Jan 27 2019 03:42:20