ams: support building unit test programs on windows/linux/macos
This commit is contained in:
@@ -16,8 +16,14 @@
|
||||
#pragma once
|
||||
#include <stratosphere.hpp>
|
||||
|
||||
#ifdef ATMOSPHERE_OS_HORIZON
|
||||
#if defined(ATMOSPHERE_OS_HORIZON)
|
||||
#include "os_tick_manager_impl.os.horizon.hpp"
|
||||
#elif defined(ATMOSPHERE_OS_WINDOWS)
|
||||
#include "os_tick_manager_impl.os.windows.hpp"
|
||||
#elif defined(ATMOSPHERE_OS_LINUX)
|
||||
#include "os_tick_manager_impl.std_chrono.hpp"
|
||||
#elif defined(ATMOSPHERE_OS_MACOS)
|
||||
#include "os_tick_manager_impl.std_chrono.hpp"
|
||||
#else
|
||||
#error "Unknown OS for TickManagerImpl"
|
||||
#endif
|
||||
@@ -31,7 +37,11 @@ namespace ams::os::impl {
|
||||
private:
|
||||
TickManagerImpl m_impl;
|
||||
public:
|
||||
#if defined(ATMOSPHERE_OS_HORIZON)
|
||||
constexpr TickManager() : m_impl() { /* ... */ }
|
||||
#else
|
||||
TickManager() : m_impl() { /* ... */ }
|
||||
#endif
|
||||
|
||||
ALWAYS_INLINE Tick GetTick() const {
|
||||
return m_impl.GetTick();
|
||||
|
||||
Reference in New Issue
Block a user