2 * Copyright (c) 2017 Samsung Electronics Co., Ltd.
4 * Contact: Jin Yoon <jinny.yoon@samsung.com>
5 * Geunsun Lee <gs86.lee@samsung.com>
6 * Eunyoung Lee <ey928.lee@samsung.com>
7 * Junkyu Han <junkyu.han@samsung.com>
9 * Licensed under the Flora License, Version 1.1 (the License);
10 * you may not use this file except in compliance with the License.
11 * You may obtain a copy of the License at
13 * http://floralicense.org/license/
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an AS IS BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
22 #ifndef __POSITION_FINDER_SERVER_H__
23 #define __POSITION_FINDER_SERVER_H__
30 #define LOG_TAG "POSITION_FINDER_SERVER"
33 #define _D(fmt, arg...) dlog_print(DLOG_DEBUG, LOG_TAG, "[%s:%d] " fmt "\n", __func__, __LINE__, ##arg)
37 #define _I(fmt, arg...) dlog_print(DLOG_INFO, LOG_TAG, "[%s:%d] " fmt "\n", __func__, __LINE__, ##arg)
41 #define _W(fmt, arg...) dlog_print(DLOG_WARN, LOG_TAG, "[%s:%d] " fmt "\n", __func__, __LINE__, ##arg)
45 #define _E(fmt, arg...) dlog_print(DLOG_ERROR, LOG_TAG, "[%s:%d] " fmt "\n", __func__, __LINE__, ##arg)
48 #define retvm_if(expr, val, fmt, arg...) do { \
51 _E("(%s) -> %s() return", #expr, __FUNCTION__); \
56 #define retv_if(expr, val) do { \
58 _E("(%s) -> %s() return", #expr, __FUNCTION__); \
63 #define retm_if(expr, fmt, arg...) do { \
66 _E("(%s) -> %s() return", #expr, __FUNCTION__); \
71 #define ret_if(expr) do { \
73 _E("(%s) -> %s() return", #expr, __FUNCTION__); \
78 #define goto_if(expr, val) do { \
80 _E("(%s) -> goto", #expr); \
85 #define break_if(expr) { \
87 _E("(%s) -> break", #expr); \
92 #define continue_if(expr) { \
94 _E("(%s) -> continue", #expr); \
101 #endif /* __POSITION_FINDER_SERVER_H__ */