PixelBullet  0.0.1
A C++ game engine
Loading...
Searching...
No Matches
platform.h
1#pragma once
2
3#include "pixelbullet/core/platform_paths.h"
4
5#include <cstdint>
6#include <ctime>
7
8namespace pixelbullet::platform
9{
10enum class HostPlatform : uint8_t
11{
12 Windows,
13 Linux
14};
15
16#if defined(_WIN32)
17inline constexpr HostPlatform current_platform = HostPlatform::Windows;
18#elif defined(__linux__)
19inline constexpr HostPlatform current_platform = HostPlatform::Linux;
20#else
21#error "Unsupported platform"
22#endif
23
24void DebugBreak();
25uint32_t GetProcessId();
26std::tm ToLocalTime(std::time_t value);
27std::tm ToUtcTime(std::time_t value);
28} // namespace pixelbullet::platform