diff options
| author | Lioncash <mathew1800@gmail.com> | 2018-05-15 17:28:41 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2018-05-15 18:27:32 -0400 |
| commit | 947fa271bec7e512eddaf7e5d6ffecef49c88361 (patch) | |
| tree | e6ef8ee9d8d818bcdf7ba6efb0aa9d857141bf13 /Source/Core/Common | |
| parent | 51ce30e09d662c11a5fcc4f534f0ff5c6b62b7a8 (diff) | |
Common: Add MemArena.h/cpp to the Common namespace
Brings more common code under the Common namespace.
Diffstat (limited to 'Source/Core/Common')
| -rw-r--r-- | Source/Core/Common/MemArena.cpp | 4 | ||||
| -rw-r--r-- | Source/Core/Common/MemArena.h | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/Source/Core/Common/MemArena.cpp b/Source/Core/Common/MemArena.cpp index 750a240e19..fcd18892ba 100644 --- a/Source/Core/Common/MemArena.cpp +++ b/Source/Core/Common/MemArena.cpp @@ -28,6 +28,8 @@ #endif #endif +namespace Common +{ #ifdef ANDROID #define ASHMEM_DEVICE "/dev/ashmem" @@ -154,3 +156,5 @@ u8* MemArena::FindMemoryBase() return static_cast<u8*>(base); #endif } + +} // namespace Common diff --git a/Source/Core/Common/MemArena.h b/Source/Core/Common/MemArena.h index 9018c061dd..21295ce6a5 100644 --- a/Source/Core/Common/MemArena.h +++ b/Source/Core/Common/MemArena.h @@ -12,11 +12,12 @@ #include "Common/CommonTypes.h" +namespace Common +{ // This class lets you create a block of anonymous RAM, and then arbitrarily map views into it. // Multiple views can mirror the same section of the block, which makes it very convenient for // emulating // memory mirrors. - class MemArena { public: @@ -35,3 +36,5 @@ private: int fd; #endif }; + +} // namespace Common |
