diff options
| author | Brian Munro <brian.alexander.munro@gmail.com> | 2018-02-22 18:02:02 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-02-22 18:02:02 +0200 |
| commit | 28714f0eb800f2170acbf29dddce1582d20d6b8b (patch) | |
| tree | 0684c123db375336e0e03f0240155a12e744db16 /src/shared/stackdata.h | |
| parent | 0bcd752b2758bdb072b498ccc90905276be065e9 (diff) | |
| parent | 5e5c9c07291f6b09623d31c92b1fb61c4ede576e (diff) | |
Merge pull request #236 from SuperSandro2000/new_vfs_library
Update reame.md
Diffstat (limited to 'src/shared/stackdata.h')
| -rw-r--r-- | src/shared/stackdata.h | 43 |
1 files changed, 17 insertions, 26 deletions
diff --git a/src/shared/stackdata.h b/src/shared/stackdata.h index 7151699c..252b5ba4 100644 --- a/src/shared/stackdata.h +++ b/src/shared/stackdata.h @@ -1,50 +1,41 @@ #ifndef STACKDATA_H
#define STACKDATA_H
-
-#include <string>
#include <Windows.h>
-
+#include <string>
namespace MOShared {
-
class StackData {
- friend bool operator==(const StackData &LHS, const StackData &RHS);
- friend bool operator<(const StackData &LHS, const StackData &RHS);
-public:
+ friend bool operator==(const StackData& LHS, const StackData& RHS);
+ friend bool operator<(const StackData& LHS, const StackData& RHS);
- StackData();
- StackData(const char *function, int line);
+public:
+ StackData();
+ StackData(const char* function, int line);
- std::string toString() const;
+ std::string toString() const;
private:
+ void load_modules(HANDLE process, DWORD processID);
- void load_modules(HANDLE process, DWORD processID);
-
- void initTrace();
+ void initTrace();
private:
-
- static const int FRAMES_TO_SKIP = 1;
- static const int FRAMES_TO_CAPTURE = 20;
+ static const int FRAMES_TO_SKIP = 1;
+ static const int FRAMES_TO_CAPTURE = 20;
private:
-
- LPVOID m_Stack[FRAMES_TO_CAPTURE];
- USHORT m_Count;
- std::string m_Function;
- int m_Line;
-
+ LPVOID m_Stack[FRAMES_TO_CAPTURE];
+ USHORT m_Count;
+ std::string m_Function;
+ int m_Line;
};
+bool operator==(const StackData& LHS, const StackData& RHS);
-bool operator==(const StackData &LHS, const StackData &RHS);
-
-bool operator<(const StackData &LHS, const StackData &RHS);
+bool operator<(const StackData& LHS, const StackData& RHS);
} // namespace MOShared
-
#endif // STACKDATA_H
|
