aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/pdb/call_stack.hpp
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-09-14 04:51:52 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-09-14 16:02:26 +0300
commited597441678604f6bf44513532ad282e4d5593be (patch)
tree2839da580b2faf96a6c634b275ae01b84eee4442 /include/pdb/call_stack.hpp
parentdisable Boost autolinking feature (diff)
downloadwinapi-debug-ed597441678604f6bf44513532ad282e4d5593be.tar.gz
winapi-debug-ed597441678604f6bf44513532ad282e4d5593be.zip
unit_tests: more call stack tests
Diffstat (limited to '')
-rw-r--r--include/pdb/call_stack.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/pdb/call_stack.hpp b/include/pdb/call_stack.hpp
index f0e13af..ef4c119 100644
--- a/include/pdb/call_stack.hpp
+++ b/include/pdb/call_stack.hpp
@@ -43,6 +43,11 @@ public:
const std::array<Address, max_length> frames;
const std::size_t length;
+ const Address* begin() const { return frames.data(); }
+ const Address* cbegin() const { return begin(); }
+ const Address* end() const { return begin() + length; }
+ const Address* cend() const { return end(); }
+
private:
CallStack() = default;
};