LearnWithTouch/App/LearnWithTouch_ios/Libraries/libil2cpp/include/os/StackTrace.h

27 lines
548 B
C
Raw Normal View History

2019-07-01 14:33:21 +02:00
#pragma once
#include <string>
#include <vector>
namespace il2cpp
{
namespace os
{
typedef bool(*WalkStackCallback)(Il2CppMethodPointer frame, void* context);
class StackTrace
{
public:
enum WalkOrder
{
kFirstCalledToLastCalled,
kLastCalledToFirstCalled
};
// Walks the stack calling callback for each frame in the stack
// Stops when callback returns false
static void WalkStack(WalkStackCallback callback, void* context, WalkOrder walkOrder);
};
}
}