visibility.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SYMBOL_IS_EXPORTED
 
#define SYMBOL_IS_IMPORTED
 
#define SYMBOL_IS_LOCALDEF
 

Macro Definition Documentation

#define SYMBOL_IS_EXPORTED

Macros to encapsulate symbol visibility on various platforms. You need to define a separate macro for your package; symbols that are exported in one dynamic shared object, may of course be imported by another one!

Usage:

#include <opm/verteq/utility/visibility.h>

#if defined (foo_EXPORTS)

define FOO_PUBLIC SYMBOL_IS_EXPORTED

#else

define FOO_PUBLIC SYMBOL_IS_IMPORTED

#endif #define FOO_PRIVATE SYMBOL_IS_LOCALDEF

struct FOO_PUBLIC Bar { };

int FOO_PRIVATE mumble ();

#define SYMBOL_IS_IMPORTED
#define SYMBOL_IS_LOCALDEF