prime/include/Kyoto/Alloc/CCallStack.hpp

20 lines
368 B
C++
Raw Normal View History

#ifndef _CCALLSTACK
#define _CCALLSTACK
2022-09-20 04:35:24 +00:00
2022-10-14 15:46:40 +00:00
#include <types.h>
2022-09-20 04:35:24 +00:00
class CCallStack {
2022-10-15 04:33:23 +00:00
static const char kUnknownType[];
2022-09-20 04:35:24 +00:00
public:
2022-10-15 04:33:23 +00:00
CCallStack(uint lineNum, const char* lineStr, const char* type = kUnknownType);
2022-09-20 04:35:24 +00:00
const char* GetFileAndLineText() const;
const char* GetTypeText() const;
2022-10-14 15:46:40 +00:00
2022-09-20 04:35:24 +00:00
private:
const char* x0_line;
const char* x4_type;
};
#endif // _CCALLSTACK