base.h File Reference

Basic LSST definitions. More...

#include <memory>

Go to the source code of this file.

## Macros

#define LSST_EXPORT   __attribute__ ((visibility("default")))
Make a symbol visible even if visiblity is hidden (e.g. More...

#define LSST_PRIVATE   __attribute__ ((visibility("hidden")))
Make a symbol hidden even if default visiblity is public. More...

## Detailed Description

Basic LSST definitions.

Definition in file base.h.

## ◆ LSST_EXPORT

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

Make a symbol visible even if visiblity is hidden (e.g.

for pybind11 modules)

This implementation works for gcc and clang; it has not been tested for other compilers

Definition at line 37 of file base.h.

## ◆ LSST_PRIVATE

 #define LSST_PRIVATE   __attribute__ ((visibility("hidden")))

Make a symbol hidden even if default visiblity is public.

This implementation works for gcc and clang; it has not been tested for other compilers.

This macro should be used for most utility code for pybind11 wrapping (at least non-template, non-inline code). It can also be used in non-pybind11 code to make a symbol private to a library without also forcing it to be private to a single source file.

Definition at line 49 of file base.h.