Skip to content

Commit

Permalink
Add some [[nodiscard]] to hsSystemInfo.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoikas committed Nov 13, 2021
1 parent 7acaeed commit a34baf0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/Plasma/CoreLib/hsSystemInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,14 @@ namespace hsSystemInfo
/**
* Returns all of the system information as a string.
*/
[[nodiscard]]
ST::string AsString();

/**
* Gets the name of the CPU the current thread is executing on.
* \remarks Example: "Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz"
*/
[[nodiscard]]
ST::string GetCPUBrand();

/**
Expand All @@ -66,13 +68,15 @@ namespace hsSystemInfo
* detect that and return all of: the windows version, kernel name and version, and
* the WINE version.
*/
[[nodiscard]]
ST::string GetOperatingSystem();

/**
* Gets the total system memory in MiB.
* \note On some platforms, the operating system may subtract an amount of memory that
* is in use by the kernel from this total.
*/
[[nodiscard]]
uint64_t GetRAM();
}

Expand Down

0 comments on commit a34baf0

Please sign in to comment.