Class FrameStack
Manages the call stack for function execution. Provides push/pop/peek access to individual frames.
Inherited Members
Namespace: VM.Core
Assembly: VM.dll
Syntax
public class FrameStack
Properties
Count
Gets the number of frames currently on the stack.
Declaration
public int Count { get; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
Clear()
Clears all frames from the stack.
Declaration
public void Clear()
Dump()
Dumps debug info about the current call stack.
Declaration
public void Dump()
Peek()
Returns the top frame without removing it.
Declaration
public Frame Peek()
Returns
| Type | Description |
|---|---|
| Frame |
Pop()
Pops the top frame from the stack.
Declaration
public Frame Pop()
Returns
| Type | Description |
|---|---|
| Frame |
Push(Frame)
Pushes a new frame onto the stack.
Declaration
public void Push(Frame frame)
Parameters
| Type | Name | Description |
|---|---|---|
| Frame | frame |