Starboard Module Reference: export.h

Provides macros for properly exporting or importing symbols from shared libraries.

Macros

SB_EXPORT

Note that this macro's definition varies depending on the values of one or more other variables.

SB_EXPORT_PRIVATE

Note that this macro's definition varies depending on the values of one or more other variables.

SB_IMPORT

Note that this macro's definition varies depending on the values of one or more other variables.

Functions

means

Description

COMPONENT_BUILD is defined when generating shared libraries for each project,

Declaration

// rather than static libraries. This means we need to be careful about
// EXPORT/IMPORT.
#if defined(STARBOARD_IMPLEMENTATION)
// STARBOARD_IMPLEMENTATION is defined when building the Starboard library
// sources, and shouldn't be defined when building sources that are clients of
// Starboard.
#else  // defined(STARBOARD_IMPLEMENTATION)
#endif
#else  // defined(COMPONENT_BUILD)
#define SB_EXPORT
#define SB_EXPORT_PRIVATE
#define SB_IMPORT
#endif  // defined(COMPONENT_BUILD)
#endif  // STARBOARD_EXPORT_H_

Parameters

Parameters
we need to be careful
about
//
EXPORT/IMPORT.
#if
defined(STARBOARD_IMPLEMENTATION