1#ifndef LINTEL_CORE_PLATFORM_PLATFORM_H
2#define LINTEL_CORE_PLATFORM_PLATFORM_H
16#ifndef WIN32_LEAN_AND_MEAN
17#define WIN32_LEAN_AND_MEAN
57 return ::localtime_s(&
out, &time) == 0;
59 return ::localtime_r(&time, &
out) !=
nullptr;
70 const char *
drive = std::getenv(
"HOMEDRIVE");
71 const char *
path = std::getenv(
"HOMEPATH");
75 const char *
home = std::getenv(
"HOME");
76 return home !=
nullptr ?
home : std::string{};
Definition BaseFeature.h:6
bool localTime(std::time_t time, std::tm &out) noexcept
Definition Platform.h:54
std::string homeDirectory()
Definition Platform.h:64
constexpr char pathListSeparator() noexcept
Definition Platform.h:81
std::int64_t ProcessId
Definition Platform.h:33
constexpr std::string_view type_name()
Definition TypeName.h:9
ProcessId currentProcessId() noexcept
Definition Platform.h:36