X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=inc%2FFBaseLog.h;h=b2e251bbeb96a16d13b6aef705fe89474f5fab5e;hb=8f5f7c07039d34a2f4ccb9836ace7f7e0d54d08a;hp=ab6562b3edeb6a235ad9373812b7fea7f6672882;hpb=8063eb888847bec272bc412ea3917b8ad7a5f2cf;p=platform%2Fframework%2Fnative%2Fappfw.git diff --git a/inc/FBaseLog.h b/inc/FBaseLog.h index ab6562b..b2e251b 100644 --- a/inc/FBaseLog.h +++ b/inc/FBaseLog.h @@ -1,5 +1,4 @@ // -// Open Service Platform // Copyright (c) 2012 Samsung Electronics Co., Ltd. // // Licensed under the Apache License, Version 2.0 (the License); @@ -71,13 +70,13 @@ extern "C" { 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 {;} @@ -188,7 +187,7 @@ extern "C" { * @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 * @@ -220,7 +219,7 @@ extern "C" { * @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. * @@ -244,7 +243,7 @@ extern "C" { * @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. * @@ -268,7 +267,7 @@ extern "C" { * @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. * @@ -390,7 +389,7 @@ extern "C" { * * @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. * @@ -419,7 +418,7 @@ extern "C" { * @hideinitializer */ #define TryCatch(condition, expr, ...) \ - if (!(condition)) { \ + if (!(condition)) { \ AppLogException(__VA_ARGS__); \ expr; \ goto CATCH; \ @@ -434,8 +433,8 @@ extern "C" { * * @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, ...) \ @@ -456,8 +455,8 @@ extern "C" { * @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, ...) \ @@ -476,7 +475,7 @@ extern "C" { * * @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, ...) \ @@ -510,7 +509,7 @@ extern "C" { * * @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 @@ -529,7 +528,7 @@ extern "C" { * @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, ...) \ @@ -545,7 +544,7 @@ extern "C" { * @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, ...) \ @@ -561,7 +560,7 @@ extern "C" { * * @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, ...) \ @@ -579,10 +578,10 @@ extern "C" { * * @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, ...) \ @@ -599,11 +598,11 @@ extern "C" { * * @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, ...) \ @@ -621,12 +620,12 @@ extern "C" { * * @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, ...) \ @@ -643,10 +642,10 @@ extern "C" { * * @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, ...) \ @@ -661,11 +660,11 @@ extern "C" { * * @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, ...) \ @@ -681,10 +680,10 @@ extern "C" { * * @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, ...) \ @@ -700,9 +699,9 @@ extern "C" { * * @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, ...) \ @@ -718,7 +717,7 @@ extern "C" { * @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 */ @@ -733,10 +732,10 @@ extern "C" { * * @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, ...) \ @@ -758,11 +757,11 @@ extern "C" { #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__) @@ -829,7 +828,7 @@ extern "C" { * * @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. * @@ -940,7 +939,7 @@ extern "C" { * * @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. * @@ -987,8 +986,8 @@ extern "C" { * * @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, ...) \ @@ -1011,7 +1010,7 @@ extern "C" { * @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 */ @@ -1033,7 +1032,7 @@ extern "C" { * * @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, ...) \ @@ -1052,8 +1051,8 @@ extern "C" { * * @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, ...) \ @@ -1072,8 +1071,8 @@ extern "C" { * @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, ...) \ @@ -1092,7 +1091,7 @@ extern "C" { * @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, ...) \ @@ -1110,7 +1109,7 @@ extern "C" { * @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, ...) \ @@ -1126,9 +1125,9 @@ extern "C" { * * @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, ...) \ @@ -1148,10 +1147,10 @@ extern "C" { * * @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, ...) \ @@ -1170,11 +1169,11 @@ extern "C" { * * @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, ...) \ @@ -1198,7 +1197,7 @@ extern "C" { * @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 */ @@ -1218,10 +1217,10 @@ extern "C" { * * @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, ...) \ @@ -1238,11 +1237,11 @@ extern "C" { * * @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, ...) \ @@ -1261,7 +1260,7 @@ extern "C" { * @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 @@ -1281,9 +1280,9 @@ extern "C" { * * @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, ...) \ @@ -1300,13 +1299,13 @@ extern "C" { * * @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 {;} @@ -1318,10 +1317,10 @@ extern "C" { * * @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, ...) \