|
libultraship
Reimplementations of libultra (N64 SDK) functions for modern hardware
|
API export/import macros for cross-platform shared library symbol visibility. More...
Go to the source code of this file.
Macros | |
| #define | API_EXTERN extern "C" |
| Applies C linkage when compiling as C++, or plain extern in C. | |
| #define | API_EXPORT API_EXTERN __declspec(dllexport) |
| Marks a symbol for export from (or import into) a shared library. | |
API export/import macros for cross-platform shared library symbol visibility.
Provides the API_EXTERN and API_EXPORT macros used to mark functions and variables that need C linkage and/or DLL export/import attributes on Windows.
| #define API_EXPORT API_EXTERN __declspec(dllexport) |
Marks a symbol for export from (or import into) a shared library.
On Windows, this resolves to __declspec(dllexport) when building the library and __declspec(dllimport) when consuming it (i.e. when DLL is defined). On other platforms it is equivalent to API_EXTERN.
| #define API_EXTERN extern "C" |
Applies C linkage when compiling as C++, or plain extern in C.
Wraps symbols with extern "C" in C++ translation units so they are accessible from C code or from dynamic loaders that expect C-style names.