-
-
Notifications
You must be signed in to change notification settings - Fork 265
Expand file tree
/
Copy pathFunctionInst.cs
More file actions
25 lines (23 loc) · 701 Bytes
/
FunctionInst.cs
File metadata and controls
25 lines (23 loc) · 701 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AIProgrammer.Types
{
/// <summary>
/// Function specific settings for the interpreter. Includes the instruction pointer value.
/// </summary>
public class FunctionInst : Function
{
/// <summary>
/// Starting instruction index for this function, within the program code.
/// </summary>
public int InstructionPointer { get; private set; }
public FunctionInst(int instructionPointer, Function function)
: base(function)
{
InstructionPointer = instructionPointer;
}
}
}