[nostalgia/core] Add missing nodiscards and noexcepts

This commit is contained in:
2021-04-20 23:19:42 -05:00
parent 4814b4f5cc
commit 863437fb10
4 changed files with 7 additions and 5 deletions
+2
View File
@@ -26,6 +26,7 @@ class Context {
}
template<typename T>
[[nodiscard]]
constexpr T *windowerData() noexcept {
return static_cast<T*>(m_windowerData);
}
@@ -35,6 +36,7 @@ class Context {
}
template<typename T>
[[nodiscard]]
constexpr T *rendererData() noexcept {
return static_cast<T*>(m_rendererData);
}