rcpputils  master
C++ API providing common utilities and data structures.
Macros
visibility_control.hpp File Reference

Macros for controlling visibilty of exported iterfaces. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define RCPPUTILS_EXPORT   __attribute__ ((visibility("default")))
 Exposes the function with its decorated name in the compiled library object. More...
 
#define RCPPUTILS_IMPORT
 On Windows declares a function will be imported from a dll, otherwise it is empty. More...
 
#define RCPPUTILS_PUBLIC
 Declares symbols and functions will be visible for export. More...
 
#define RCPPUTILS_LOCAL
 Declares symbols cannot be exported from the dll. More...
 
#define RCPPUTILS_PUBLIC_TYPE
 On Windows, this is a replica of RCPPUTILS_PUBLIC, otherwise it is empty. More...
 

Detailed Description

Macros for controlling visibilty of exported iterfaces.

This logic was borrowed (then namespaced) from the examples on the gcc wiki: https://gcc.gnu.org/wiki/Visibility

Macro Definition Documentation

◆ RCPPUTILS_EXPORT

#define RCPPUTILS_EXPORT   __attribute__ ((visibility("default")))

Exposes the function with its decorated name in the compiled library object.

◆ RCPPUTILS_IMPORT

#define RCPPUTILS_IMPORT

On Windows declares a function will be imported from a dll, otherwise it is empty.

◆ RCPPUTILS_PUBLIC

#define RCPPUTILS_PUBLIC

Declares symbols and functions will be visible for export.

◆ RCPPUTILS_LOCAL

#define RCPPUTILS_LOCAL

Declares symbols cannot be exported from the dll.

◆ RCPPUTILS_PUBLIC_TYPE

#define RCPPUTILS_PUBLIC_TYPE

On Windows, this is a replica of RCPPUTILS_PUBLIC, otherwise it is empty.