Starboard Module Reference: export.h
Stay organized with collections
Save and categorize content based on your preferences.
Provides macros for properly exporting or importing symbols from shared
libraries.
Macros
SB_EXPORT
Specification for a symbol that should be exported when building the DLL and
imported when building code that uses the DLL.
SB_EXPORT_PRIVATE
Specification for a symbol that should be exported or imported for testing
purposes only.
SB_IMPORT
Specification for a symbol that is expected to be defined externally to this
module.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-03 UTC."],[],["The content defines three macros for managing symbols in shared libraries: `SB_EXPORT`, `SB_EXPORT_PRIVATE`, and `SB_IMPORT`. `SB_EXPORT` designates symbols to be exported from a DLL and imported by code using it. `SB_EXPORT_PRIVATE` specifies symbols for export/import, intended solely for testing. `SB_IMPORT` indicates symbols expected to be defined outside the current module. These macros ensure proper symbol visibility when building and using dynamic-link libraries.\n"]]