diff options
author | bunnei <bunneidev@gmail.com> | 2020-11-19 05:40:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-19 05:40:10 +0100 |
commit | 92344da20ce4801543c1d3148e1f1b62ba162ffb (patch) | |
tree | a5cd5980b1287dfd9b56e6df48cad3790e173284 /src/common/virtual_buffer.cpp | |
parent | Merge pull request #4866 from Morph1984/mjolnir-p3-prod (diff) | |
parent | virtual_buffer: Add compile-time type-safety guarantees with VirtualBuffer (diff) | |
download | yuzu-92344da20ce4801543c1d3148e1f1b62ba162ffb.tar yuzu-92344da20ce4801543c1d3148e1f1b62ba162ffb.tar.gz yuzu-92344da20ce4801543c1d3148e1f1b62ba162ffb.tar.bz2 yuzu-92344da20ce4801543c1d3148e1f1b62ba162ffb.tar.lz yuzu-92344da20ce4801543c1d3148e1f1b62ba162ffb.tar.xz yuzu-92344da20ce4801543c1d3148e1f1b62ba162ffb.tar.zst yuzu-92344da20ce4801543c1d3148e1f1b62ba162ffb.zip |
Diffstat (limited to '')
-rw-r--r-- | src/common/virtual_buffer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/virtual_buffer.cpp b/src/common/virtual_buffer.cpp index b009cb500..e3ca29258 100644 --- a/src/common/virtual_buffer.cpp +++ b/src/common/virtual_buffer.cpp @@ -13,7 +13,7 @@ namespace Common { -void* AllocateMemoryPages(std::size_t size) { +void* AllocateMemoryPages(std::size_t size) noexcept { #ifdef _WIN32 void* base{VirtualAlloc(nullptr, size, MEM_COMMIT, PAGE_READWRITE)}; #else @@ -29,7 +29,7 @@ void* AllocateMemoryPages(std::size_t size) { return base; } -void FreeMemoryPages(void* base, [[maybe_unused]] std::size_t size) { +void FreeMemoryPages(void* base, [[maybe_unused]] std::size_t size) noexcept { if (!base) { return; } |