else {;}
#define AppAssert(condition) \
- if (!(condition)) { \
+ if (!(condition)) { \
AppassertInternal(__PRETTY_FUNCTION__, __LINE__); \
} \
else {;}
#define AppAssertf(condition, ...) \
- if (!(condition)) { \
+ if (!(condition)) { \
AppassertfInternal(# condition, __PRETTY_FUNCTION__, __LINE__, __VA_ARGS__); \
} \
else {;}
* @since 2.0
*
* @param[in] condition The condition that is expected to be true
- * @param[in] ... The message to print, if the assertion fails
+ * @param[in] ... The message to print, if the assertion fails
*
* @image html debugging_appassert.png
*
* @since 2.0
*
* @param[in] expression The expression to evaluate
- * @param[in] ... The message to display
+ * @param[in] ... The message to display
*
* The following example demonstrates how to use the AppLogIf macro.
*
* @since 2.0
*
* @param[in] expression The expression to evaluate
- * @param[in] ... The message to display
+ * @param[in] ... The message to display
*
* The following example demonstrates how to use the AppLogDebugIf macro.
*
* @since 2.0
*
* @param[in] expression The expression to evaluate
- * @param[in] ... The message to display
+ * @param[in] ... The message to display
*
* The following example demonstrates how to use the AppLogExceptionIf macro.
*
*
* @param[in] condition The condition that is expected to be true
* @param[in] expr Expressions that are evaluated before going to CATCH label
- * @param[in] ... The message to display
+ * @param[in] ... The message to display
*
* The following example demonstrates how to use the Try macro.
*
* @hideinitializer
*/
#define TryCatch(condition, expr, ...) \
- if (!(condition)) { \
+ if (!(condition)) { \
AppLogException(__VA_ARGS__); \
expr; \
goto CATCH; \
*
* @param[in] condition The condition that is expected to be true
* @param[in] expr Expressions that are evaluated before going to CATCH label
- * @param[in] r The last result to set
- * @param[in] ... The message to display
+ * @param[in] r The last result to set
+ * @param[in] ... The message to display
* @hideinitializer
*/
#define TryCatchResult(condition, expr, r, ...) \
* @param[in] condition The condition that is expected to be true
* @param[in] expr Expressions that are evaluated before going to catchLabel
* @param[in] catchLabel The label for goto operation
-* @param[in] r The last result to set
-* @param[in] ... The message to display
+* @param[in] r The last result to set
+* @param[in] ... The message to display
* @hideinitializer
*/
#define TryCatchLabelResult(condition, expr, catchLabel, r, ...) \
*
* @param[in] condition The condition that is expected to be true
* @param[in] returnValue The value to return when the condition is @c false
- * @param[in] ... The message to display
+ * @param[in] ... The message to display
* @hideinitializer
*/
#define TryReturn(condition, returnValue, ...) \
*
* @since 2.0
*
- * @param[in] condition The condition that is expected to be true
+ * @param[in] condition The condition that is expected to be true
* @param[in] r The last result to set
* @param[in] ... The message to display
* @hideinitializer
* @since 2.0
*
* @param[in] condition The condition that is expected to be true
- * @param[in] ... The message to display
+ * @param[in] ... The message to display
* @hideinitializer
*/
#define TryReturnVoid(condition, ...) \
* @since 2.0
*
* @param[in] condition The condition that is expected to be true
- * @param[in] ... The message to display
+ * @param[in] ... The message to display
* @hideinitializer
*/
#define TryLog(condition, ...) \
*
* @param[in] condition The condition that is expected to be true
* @param[in] returnValue The value to return when the condition is @c false
-* @param[in] ... The message to display
+* @param[in] ... The message to display
* @hideinitializer
*/
#define TryLogReturn(condition, returnValue, ...) \
*
* @since 2.0
*
- * @param[in] tag Used to identify the source of a log message
+ * @param[in] tag Used to identify the source of a log message
* @param[in] condition The condition that is expected to be true
* @param[in] expr Expressions that are evaluated before going to CATCH label
- * @param[in] ... The message to display
+ * @param[in] ... The message to display
* @hideinitializer
*/
#define TryCatchTag(tag, condition, expr, ...) \
*
* @since 2.0
*
- * @param[in] tag Used to identify the source of a log message
+ * @param[in] tag Used to identify the source of a log message
* @param[in] condition The condition that is expected to be true
* @param[in] expr Expressions that are evaluated before going to CATCH label
- * @param[in] r The last result to set
- * @param[in] ... The message to display
+ * @param[in] r The last result to set
+ * @param[in] ... The message to display
* @hideinitializer
*/
#define TryCatchResultTag(tag, condition, expr, r, ...) \
*
* @since 2.1
*
-* @param[in] tag Used to identify the source of a log message
+* @param[in] tag Used to identify the source of a log message
* @param[in] condition The condition that is expected to be true
* @param[in] expr Expressions that are evaluated before going to catchLabel
* @param[in] catchLabel The label for goto operation
-* @param[in] r The last result to set
-* @param[in] ... The message to display
+* @param[in] r The last result to set
+* @param[in] ... The message to display
* @hideinitializer
*/
#define TryCatchLabelResultTag(tag, condition, expr, catchLabel, r, ...) \
*
* @since 2.0
*
- * @param[in] tag Used to identify the source of a log message
+ * @param[in] tag Used to identify the source of a log message
* @param[in] condition The condition that is expected to be true
* @param[in] returnValue The value to return when the condition is @c false
- * @param[in] ... The message to display
+ * @param[in] ... The message to display
* @hideinitializer
*/
#define TryReturnTag(tag, condition, returnValue, ...) \
*
* @since 2.0
*
- * @param[in] tag Used to identify the source of a log message
+ * @param[in] tag Used to identify the source of a log message
* @param[in] condition The condition that is expected to be true
* @param[in] returnValue The value to return when the condition is @c false
- * @param[in] r The last result to set
- * @param[in] ... The message to display
+ * @param[in] r The last result to set
+ * @param[in] ... The message to display
* @hideinitializer
*/
#define TryReturnResultTag(tag, condition, returnValue, r, ...) \
*
* @since 2.0
*
- * @param[in] tag Used to identify the source of a log message
+ * @param[in] tag Used to identify the source of a log message
* @param[in] condition The condition that is expected to be true
- * @param[in] r The last result to set
- * @param[in] ... The message to display
+ * @param[in] r The last result to set
+ * @param[in] ... The message to display
* @hideinitializer
*/
#define TryReturnVoidResultTag(tag, condition, r, ...) \
*
* @since 2.0
*
- * @param[in] tag Used to identify the source of a log message
+ * @param[in] tag Used to identify the source of a log message
* @param[in] condition The condition that is expected to be true
- * @param[in] ... The message to display
+ * @param[in] ... The message to display
* @hideinitializer
*/
#define TryReturnVoidTag(tag, condition, ...) \
* @since 2.0
*
* @param[in] tag Used to identify the source of a log message
- * @param[in] condition The condition that is expected to be true
+ * @param[in] condition The condition that is expected to be true
* @param[in] ... The message to display
* @hideinitializer
*/
*
* @since 2.1
*
-* @param[in] tag Used to identify the source of a log message
+* @param[in] tag Used to identify the source of a log message
* @param[in] condition The condition that is expected to be true
* @param[in] returnValue The value to return when the condition is @c false
-* @param[in] ... The message to display
+* @param[in] ... The message to display
* @hideinitializer
*/
#define TryLogReturnTag(tag, condition, returnValue, ...) \
#if (defined(_APP_LOG) || defined(_OSP_DEBUG_) || defined(_DEBUG)) && defined(_SECURE_LOG)
-#define AppSecureLog(...) AppLogInternal(__PRETTY_FUNCTION__, __LINE__, "[SECURE_LOG] "__VA_ARGS__)
+#define AppSecureLog(...) AppLogInternal(__PRETTY_FUNCTION__, __LINE__, "[SECURE_LOG] "__VA_ARGS__)
#define AppSecureLogDebug(...) AppLogDebugInternal(__PRETTY_FUNCTION__, __LINE__, "[SECURE_LOG] "__VA_ARGS__)
#define AppSecureLogException(...) AppLogExceptionInternal(__PRETTY_FUNCTION__, __LINE__, "[SECURE_LOG] "__VA_ARGS__)
-#define AppSecureLogTag(tag, ...) AppLogTagInternal(tag, __PRETTY_FUNCTION__, __LINE__, "[SECURE_LOG] "__VA_ARGS__)
+#define AppSecureLogTag(tag, ...) AppLogTagInternal(tag, __PRETTY_FUNCTION__, __LINE__, "[SECURE_LOG] "__VA_ARGS__)
#define AppSecureLogDebugTag(tag, ...) AppLogDebugTagInternal(tag, __PRETTY_FUNCTION__, __LINE__, "[SECURE_LOG] "__VA_ARGS__)
#define AppSecureLogExceptionTag(tag, ...) AppLogExceptionTagInternal(tag, __PRETTY_FUNCTION__, __LINE__, "[SECURE_LOG] "__VA_ARGS__)
*
* @since 2.1
*
- * @param[in] ... The message to display
+ * @param[in] ... The message to display
*
* The following example demonstrates how to use the AppSecureLogException macro.
*
*
* @param[in] condition The condition that is expected to be true
* @param[in] expr Expressions that are evaluated before going to CATCH label
- * @param[in] ... The message to display
+ * @param[in] ... The message to display
*
* The following example demonstrates how to use the SecureTry macro.
*
*
* @param[in] condition The condition that is expected to be true
* @param[in] expr Expressions that are evaluated before going to CATCH label
- * @param[in] r The last result to set
- * @param[in] ... The message to display
+ * @param[in] r The last result to set
+ * @param[in] ... The message to display
* @hideinitializer
*/
#define SecureTryCatchResult(condition, expr, r, ...) \
* @param[in] condition The condition that is expected to be true
* @param[in] expr Expressions that are evaluated before going to catchLabel
* @param[in] catchLabel The label for goto operation
- * @param[in] r The last result to set
+ * @param[in] r The last result to set
* @param[in] ... The message to display
* @hideinitializer
*/
*
* @param[in] condition The condition that is expected to be true
* @param[in] returnValue The value to return when the condition is @c false
- * @param[in] ... The message to display
+ * @param[in] ... The message to display
* @hideinitializer
*/
#define SecureTryReturn(condition, returnValue, ...) \
*
* @param[in] condition The condition that is expected to be true
* @param[in] returnValue The value to return when the condition is @c false
- * @param[in] r The last result to set
- * @param[in] ... The message to display
+ * @param[in] r The last result to set
+ * @param[in] ... The message to display
* @hideinitializer
*/
#define SecureTryReturnResult(condition, returnValue, r, ...) \
* @since 2.1
*
* @param[in] condition The condition that is expected to be true
- * @param[in] r The last result to set
- * @param[in] ... The message to display
+ * @param[in] r The last result to set
+ * @param[in] ... The message to display
* @hideinitializer
*/
#define SecureTryReturnVoidResult(condition, r, ...) \
* @since 2.1
*
* @param[in] condition The condition that is expected to be true
- * @param[in] ... The message to display
+ * @param[in] ... The message to display
* @hideinitializer
*/
#define SecureTryReturnVoid(condition, ...) \
* @since 2.1
*
* @param[in] condition The condition that is expected to be true
- * @param[in] ... The message to display
+ * @param[in] ... The message to display
* @hideinitializer
*/
#define SecureTryLog(condition, ...) \
*
* @since 2.1
*
- * @param[in] condition The condition that is expected to be true
+ * @param[in] condition The condition that is expected to be true
* @param[in] returnValue The value to return when the condition is @c false
- * @param[in] ... The message to display
+ * @param[in] ... The message to display
* @hideinitializer
*/
#define SecureTryLogReturn(condition, returnValue, ...) \
*
* @since 2.1
*
- * @param[in] tag Used to identify the source of a log message
+ * @param[in] tag Used to identify the source of a log message
* @param[in] condition The condition that is expected to be true
* @param[in] expr Expressions that are evaluated before going to CATCH label
- * @param[in] ... The message to display
+ * @param[in] ... The message to display
* @hideinitializer
*/
#define SecureTryCatchTag(tag, condition, expr, ...) \
*
* @since 2.1
*
- * @param[in] tag Used to identify the source of a log message
+ * @param[in] tag Used to identify the source of a log message
* @param[in] condition The condition that is expected to be true
* @param[in] expr Expressions that are evaluated before going to CATCH label
- * @param[in] r The last result to set
- * @param[in] ... The message to display
+ * @param[in] r The last result to set
+ * @param[in] ... The message to display
* @hideinitializer
*/
#define SecureTryCatchResultTag(tag, condition, expr, r, ...) \
* @param[in] condition The condition that is expected to be true
* @param[in] expr Expressions that are evaluated before going to catchLabel
* @param[in] catchLabel The label for goto operation
- * @param[in] r The last result to set
+ * @param[in] r The last result to set
* @param[in] ... The message to display
* @hideinitializer
*/
*
* @since 2.1
*
- * @param[in] tag Used to identify the source of a log message
+ * @param[in] tag Used to identify the source of a log message
* @param[in] condition The condition that is expected to be true
* @param[in] returnValue The value to return when the condition is @c false
- * @param[in] ... The message to display
+ * @param[in] ... The message to display
* @hideinitializer
*/
#define SecureTryReturnTag(tag, condition, returnValue, ...) \
*
* @since 2.1
*
- * @param[in] tag Used to identify the source of a log message
+ * @param[in] tag Used to identify the source of a log message
* @param[in] condition The condition that is expected to be true
* @param[in] returnValue The value to return when the condition is @c false
- * @param[in] r The last result to set
- * @param[in] ... The message to display
+ * @param[in] r The last result to set
+ * @param[in] ... The message to display
* @hideinitializer
*/
#define SecureTryReturnResultTag(tag, condition, returnValue, r, ...) \
* @since 2.1
*
* @param[in] tag Used to identify the source of a log message
- * @param[in] condition The condition that is expected to be true
+ * @param[in] condition The condition that is expected to be true
* @param[in] r The last result to set
* @param[in] ... The message to display
* @hideinitializer
*
* @since 2.1
*
- * @param[in] tag Used to identify the source of a log message
+ * @param[in] tag Used to identify the source of a log message
* @param[in] condition The condition that is expected to be true
- * @param[in] ... The message to display
+ * @param[in] ... The message to display
* @hideinitializer
*/
#define SecureTryReturnVoidTag(tag, condition, ...) \
*
* @since 2.1
*
- * @param[in] tag Used to identify the source of a log message
+ * @param[in] tag Used to identify the source of a log message
* @param[in] condition The condition that is expected to be true
- * @param[in] ... The message to display
+ * @param[in] ... The message to display
* @hideinitializer
*/
#define SecureTryLogTag(tag, condition, ...) \
- if (!(condition)) { \
+ if (!(condition)) { \
AppSecureLogTag(tag, __VA_ARGS__); \
} \
else {;}
*
* @since 2.1
*
- * @param[in] tag Used to identify the source of a log message
- * @param[in] condition The condition that is expected to be true
+ * @param[in] tag Used to identify the source of a log message
+ * @param[in] condition The condition that is expected to be true
* @param[in] returnValue The value to return when the condition is @c false
- * @param[in] ... The message to display
+ * @param[in] ... The message to display
* @hideinitializer
*/
#define SecureTryLogReturnTag(tag, condition, returnValue, ...) \