YARP
Yet Another Robot Platform
api.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3  * SPDX-FileCopyrightText: 2006-2010 RobotCub Consortium
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #ifndef YARP_os_API_H
8 #define YARP_os_API_H
9 
10 #include <yarp/conf/api.h>
11 #ifndef YARP_os_API
12 # ifdef YARP_os_EXPORTS
13 # define YARP_os_API YARP_EXPORT
14 # define YARP_os_EXTERN YARP_EXPORT_EXTERN
15 # define YARP_os_DEPRECATED_API YARP_DEPRECATED_EXPORT
16 # define YARP_os_DEPRECATED_API_MSG(X) YARP_DEPRECATED_MSG_EXPORT(X)
17 # else
18 # define YARP_os_API YARP_IMPORT
19 # define YARP_os_EXTERN YARP_IMPORT_EXTERN
20 # define YARP_os_DEPRECATED_API YARP_DEPRECATED_IMPORT
21 # define YARP_os_DEPRECATED_API_MSG(X) YARP_DEPRECATED_MSG_IMPORT(X)
22 # endif
23 #endif
24 
25 #ifndef YARP_init_API
26 # ifdef YARP_init_EXPORTS
27 # define YARP_init_API YARP_EXPORT
28 # define YARP_init_EXTERN YARP_EXPORT_EXTERN
29 # define YARP_init_DEPRECATED_API YARP_DEPRECATED_EXPORT
30 # define YARP_init_DEPRECATED_API_MSG(X) YARP_DEPRECATED_MSG_EXPORT(X)
31 # else
32 # define YARP_init_API YARP_IMPORT
33 # define YARP_init_EXTERN YARP_IMPORT_EXTERN
34 # define YARP_init_DEPRECATED_API YARP_DEPRECATED_IMPORT
35 # define YARP_init_DEPRECATED_API_MSG(X) YARP_DEPRECATED_MSG_IMPORT(X)
36 # endif
37 #endif
38 
39 #ifndef YARP_os_impl_API
40 // FIXME YARP should not export symbols from os/impl.
41 // Unfortunately at the moment, methods from impl are used in other
42 // internal libraries, forcing us to export them in the library
43 # ifdef YARP_FILTER_impl
44 # define YARP_os_impl_API
45 # else
46 # define YARP_os_impl_API YARP_os_API
47 # endif
48 #endif
49 
50 #ifndef YARP_NO_DEPRECATED // since YARP 3.3
51 # if defined(USING_DEPRECATED_UPPERCASE_YARP_OS_TARGET)
52 # include <yarp/conf/system.h>
53  YARP_COMPILER_WARNING("The YARP::YARP_OS target is deprecated. Use YARP::YARP_os instead")
54 # endif
55 #endif // YARP_NO_DEPRECATED
56 
57 #endif // YARP_os_API_H
#define YARP_COMPILER_WARNING(x)
Generate a warning at build time on supported compilers.
Definition: system.h:109