added the ability to inspect the stack from the debugger
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
#include "runtime.h"
|
||||
|
||||
#define MAX_FRAME_STACK 16
|
||||
#define MAX_FRAMES 1024
|
||||
#define MAX_FRAMES 16
|
||||
|
||||
typedef struct Frame Frame;
|
||||
|
||||
@@ -25,6 +25,11 @@ struct xRuntime {
|
||||
Heap *heap;
|
||||
};
|
||||
|
||||
Stack *Runtime_GetStack(Runtime *runtime)
|
||||
{
|
||||
return Stack_Copy(runtime->stack, 1);
|
||||
}
|
||||
|
||||
Heap *Runtime_GetHeap(Runtime *runtime)
|
||||
{
|
||||
return runtime->heap;
|
||||
|
||||
Reference in New Issue
Block a user