mirror of
https://git.h3cjp.net/H3cJP/yuzu.git
synced 2024-11-15 18:22:51 +00:00
df72480395
Now that clang-format makes [[nodiscard]] attributes format sensibly, we can apply them to several functions within the common library to allow the compiler to complain about any misuses of the functions.
22 lines
491 B
C++
22 lines
491 B
C++
// Copyright 2020 yuzu Emulator Project
|
|
// Licensed under GPLv2 or any later version
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include "common/common_types.h"
|
|
|
|
namespace Common {
|
|
|
|
struct MemoryInfo {
|
|
u64 TotalPhysicalMemory{};
|
|
u64 TotalSwapMemory{};
|
|
};
|
|
|
|
/**
|
|
* Gets the memory info of the host system
|
|
* @return Reference to a MemoryInfo struct with the physical and swap memory sizes in bytes
|
|
*/
|
|
[[nodiscard]] const MemoryInfo& GetMemInfo();
|
|
|
|
} // namespace Common
|