automotive-message-broker  0.14.803
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
libamb-common.h
1 /*
2  * Automotive Message Broker Client Library
3  *
4  * Copyright (C) 2016 Samsung Electronics Co., Ltd.
5  *
6  * Licensed under the Apache License, Version 2.0 (the License)
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */
18 
19 #ifndef __LIBAMB_COMMON_H__
20 #define __LIBAMB_COMMON_H__
21 
22 #ifndef EXPORT
23 # define EXPORT __attribute__((visibility("default")))
24 #endif
25 
26 #if defined DEBUG
27 # define DEBUGOUT(fmt, ...) do { fprintf(stderr, fmt, ##__VA_ARGS__); } while(0);
28 #else
29 # define DEBUGOUT(fmt,...)
30 #endif /* DEBUG */
31 
32 #endif /* __LIBAMB_COMMON_H__ */