diff options
| author | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2018-02-23 01:45:58 +0100 |
|---|---|---|
| committer | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2018-02-23 01:45:58 +0100 |
| commit | ea6292168a6acd4c263913f0ccd7dd64daf4f5cf (patch) | |
| tree | 312024abbd7c3c100274f3a8031d49096480b654 /src/shared/stackdata.h | |
| parent | 5e5c9c07291f6b09623d31c92b1fb61c4ede576e (diff) | |
Revert "Applied clang-format on source"
This reverts commit 5e5c9c07291f6b09623d31c92b1fb61c4ede576e.
Diffstat (limited to 'src/shared/stackdata.h')
| -rw-r--r-- | src/shared/stackdata.h | 43 |
1 files changed, 26 insertions, 17 deletions
diff --git a/src/shared/stackdata.h b/src/shared/stackdata.h index 252b5ba4..7151699c 100644 --- a/src/shared/stackdata.h +++ b/src/shared/stackdata.h @@ -1,41 +1,50 @@ #ifndef STACKDATA_H
#define STACKDATA_H
-#include <Windows.h>
+
#include <string>
+#include <Windows.h>
+
namespace MOShared {
-class StackData {
- friend bool operator==(const StackData& LHS, const StackData& RHS);
- friend bool operator<(const StackData& LHS, const StackData& RHS);
+class StackData {
+ friend bool operator==(const StackData &LHS, const StackData &RHS);
+ friend bool operator<(const StackData &LHS, const StackData &RHS);
public:
- StackData();
- StackData(const char* function, int line);
- std::string toString() const;
+ StackData();
+ StackData(const char *function, int line);
+
+ std::string toString() const;
private:
- void load_modules(HANDLE process, DWORD processID);
- void initTrace();
+ void load_modules(HANDLE process, DWORD processID);
+
+ 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
|
