From 154e2d7f4a063703dbdbb0984579be10355bf785 Mon Sep 17 00:00:00 2001 From: Aki Date: Fri, 1 Mar 2024 01:41:44 +0100 Subject: Rename inline files to .inl.h --- StarsEx/Clock.h | 2 +- StarsEx/Clock.inl | 28 ---------------------------- StarsEx/Clock.inl.h | 28 ++++++++++++++++++++++++++++ 3 files changed, 29 insertions(+), 29 deletions(-) delete mode 100644 StarsEx/Clock.inl create mode 100644 StarsEx/Clock.inl.h (limited to 'StarsEx') diff --git a/StarsEx/Clock.h b/StarsEx/Clock.h index 39e08ac..238616d 100644 --- a/StarsEx/Clock.h +++ b/StarsEx/Clock.h @@ -50,6 +50,6 @@ private: }; -#include "Clock.inl" +#include "Clock.inl.h" #endif // Clock_h diff --git a/StarsEx/Clock.inl b/StarsEx/Clock.inl deleted file mode 100644 index 42a2693..0000000 --- a/StarsEx/Clock.inl +++ /dev/null @@ -1,28 +0,0 @@ -/* Starshatter: The Open Source Project - Copyright (c) 2021-2022, Starshatter: The Open Source Project Contributors - Copyright (c) 2011-2012, Starshatter OpenSource Distribution Contributors - Copyright (c) 1997-2006, Destroyer Studios LLC. -*/ - -#include "Clock.h" - -#include -#include - - -template -R -Clock::GameTime() const -{ - using target_duration = std::chrono::duration; - return std::chrono::duration_cast(m_game_elapsed).count(); -} - - -template -R -Clock::RealTime() const -{ - using target_duration = std::chrono::duration; - return std::chrono::duration_cast(m_real_elapsed).count(); -} diff --git a/StarsEx/Clock.inl.h b/StarsEx/Clock.inl.h new file mode 100644 index 0000000..42a2693 --- /dev/null +++ b/StarsEx/Clock.inl.h @@ -0,0 +1,28 @@ +/* Starshatter: The Open Source Project + Copyright (c) 2021-2022, Starshatter: The Open Source Project Contributors + Copyright (c) 2011-2012, Starshatter OpenSource Distribution Contributors + Copyright (c) 1997-2006, Destroyer Studios LLC. +*/ + +#include "Clock.h" + +#include +#include + + +template +R +Clock::GameTime() const +{ + using target_duration = std::chrono::duration; + return std::chrono::duration_cast(m_game_elapsed).count(); +} + + +template +R +Clock::RealTime() const +{ + using target_duration = std::chrono::duration; + return std::chrono::duration_cast(m_real_elapsed).count(); +} -- cgit v1.1