2 * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 #ifndef __APPFW_WIDGET_LOG_H__
19 #define __APPFW_WIDGET_LOG_H__
23 #define _E(fmt, arg...) LOGE(fmt, ##arg)
24 #define _I(fmt, arg...) LOGI(fmt, ##arg)
25 #define _D(fmt, arg...) LOGD(fmt, ##arg)
26 #define _W(fmt, arg...) LOGW(fmt, ##arg)
29 #define EXPORT_API __attribute__ ((visibility("default")))
33 #define _E(fmt, arg...) LOGE(fmt, ##arg)
37 #define _I(...) LOGI(__VA_ARGS__)
41 #define _D(...) LOGD(__VA_ARGS__)
45 #define _W(...) LOGW(__VA_ARGS__)
48 #define _warn_if(expr, fmt, arg...) do { \
54 #define _ret_if(expr) do { \
60 #define _retv_if(expr, val) do { \
66 #define _retm_if(expr, fmt, arg...) do { \
73 #define _retvm_if(expr, val, fmt, arg...) do { \
81 #endif //__APPFW_WIDGET_LOG_H_