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 macros for the CIGI Host Control Plugin library
8//!
9//! This file contains platform-specific export macros that control the visibility
10//! of functions and classes in the CIGI Host Control Plugin library. These macros
11//! ensure proper symbol export when building the library and proper import when
12//! using the library in other components of the VREngage system.
13
14#pragma once
15
16
17//! \name DLL Export/Import Macros
18//! @{
19
20#ifdef _WIN32
21 #ifdef CIGIHOSTCONTROL_EXPORTS
22 //! \brief Export macro for Windows platform
23 //!
24 //! When building the CIGI Host Control Plugin library, this macro expands to
25 //! __declspec(dllexport) to make symbols visible to clients of the library.
26 #define CIGIHOSTCONTROL_DLL __declspec(dllexport)
27 #else
28 //! \brief Import macro for Windows platform
29 //!
30 //! When using the CIGI Host Control Plugin library, this macro expands to
31 //! __declspec(dllimport) to properly import symbols from the library.
32 #define CIGIHOSTCONTROL_DLL __declspec(dllimport)
33 #endif
34#else
35 //! \brief Export/import macro for non-Windows platforms
36 //!
37 //! On non-Windows platforms, this macro expands to nothing as these platforms
38 //! typically handle symbol visibility differently.
39 #define CIGIHOSTCONTROL_DLL
40#endif
41
42//! @}