1 | // LAF Base Library |
2 | // Copyright (c) 2021 Igara Studio S.A. |
3 | // Copyright (c) 2001-2016 David Capello |
4 | // |
5 | // This file is released under the terms of the MIT license. |
6 | // Read LICENSE.txt for more information. |
7 | |
8 | #ifdef HAVE_CONFIG_H |
9 | #include "config.h" |
10 | #endif |
11 | |
12 | #include "base/memory_dump.h" |
13 | |
14 | #if LAF_WINDOWS |
15 | #include "base/memory_dump_win32.h" |
16 | #else |
17 | #include "base/memory_dump_none.h" |
18 | #endif |
19 | |
20 | namespace base { |
21 | |
22 | MemoryDump::MemoryDump() |
23 | : m_impl(new MemoryDumpImpl) |
24 | { |
25 | } |
26 | |
27 | MemoryDump::~MemoryDump() |
28 | { |
29 | delete m_impl; |
30 | } |
31 | |
32 | void MemoryDump::setFileName(const std::string& fileName) |
33 | { |
34 | m_impl->setFileName(fileName); |
35 | } |
36 | |
37 | } // namespace base |
38 | |