VR-Engage  2.2
Loading...
Searching...
No Matches
export.h
Go to the documentation of this file.
1/*******************************************************************************
2** Copyright (c) 2025 MAK Technologies
3** All rights reserved.
4*******************************************************************************/
5
6//! \file export.h
7//! \brief Defines export/import macros for the vreCommonComponents library
8//! \ingroup vreCommonComponents
9
10#pragma once
11
12//! \brief DLL export/import macro for the vreCommonComponents library
13//!
14//! This macro is used to properly export symbols when building the library and
15//! import them when using the library. On Windows, it expands to the appropriate
16//! __declspec directives based on whether we are building or consuming the library.
17//! On non-Windows platforms, it expands to nothing.
18#ifdef _WIN32
19 #ifdef VRECOMMONCOMPONENTS_EXPORTS
20 //! \brief Export mode - used when building the library
21 #define VRECOMMONCOMPONENTS_DLL __declspec(dllexport)
22 #else
23 //! \brief Import mode - used when consuming the library
24 #define VRECOMMONCOMPONENTS_DLL __declspec(dllimport)
25 #endif
26#else
27 //! \brief No special handling for non-Windows platforms
28 #define VRECOMMONCOMPONENTS_DLL
29#endif