Platform.h#
Fully qualified name: omni/core/Platform.h
File members: omni/core/Platform.h
// Copyright (c) 2020-2024, NVIDIA CORPORATION. All rights reserved.
//
// NVIDIA CORPORATION and its licensors retain all intellectual property
// and proprietary rights in and to this software, related documentation
// and any modifications thereto. Any use, reproduction, disclosure or
// distribution of this software and related documentation without an express
// license agreement from NVIDIA CORPORATION is strictly prohibited.
//
#pragma once
#include "../../carb/Defines.h"
#define OMNI_PLATFORM_WINDOWS CARB_PLATFORM_WINDOWS
#define OMNI_PLATFORM_LINUX CARB_PLATFORM_LINUX
#define OMNI_PLATFORM_MACOS CARB_PLATFORM_MACOS
#define OMNI_POSIX CARB_POSIX
#if OMNI_PLATFORM_LINUX || defined(DOXYGEN_BUILD)
# define OMNI_BREAK_POINT() ::raise(SIGTRAP)
#elif OMNI_PLATFORM_WINDOWS
# define OMNI_BREAK_POINT() ::__debugbreak()
#else
CARB_UNSUPPORTED_PLATFORM();
#endif