omni/connect/core/Api.h

File members: omni/connect/core/Api.h

// SPDX-FileCopyrightText: Copyright (c) 2022-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// SPDX-License-Identifier: LicenseRef-NvidiaProprietary
//
// NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
// property and proprietary rights in and to this material, related
// documentation and any modifications thereto. Any use, reproduction,
// disclosure or distribution of this material and related documentation
// without an express license agreement from NVIDIA CORPORATION or
// its affiliates is strictly prohibited.

#pragma once

#include "Feature.h"

#ifdef __cplusplus
#define OMNICONNECTCORE_EXTERN_C extern "C"
#else
#define OMNICONNECTCORE_EXTERN_C
#endif

#if defined(_WIN32)
#define OMNICONNECTCORE_IMPORT __declspec(dllimport)
#define OMNICONNECTCORE_EXPORT __declspec(dllexport)
#else
#define OMNICONNECTCORE_IMPORT
#define OMNICONNECTCORE_EXPORT __attribute__((visibility("default")))
#endif

#define OMNICONNECTCORE_DEPRECATED(version, message) [[deprecated(message ". It was deprecated in v" version " and will be removed in the future.")]]

#ifdef omni_connect_core_EXPORTS
#define OMNICONNECTCORE_API OMNICONNECTCORE_EXPORT
#else
#define OMNICONNECTCORE_API OMNICONNECTCORE_IMPORT
#endif