scripttypes.cpp

来自「编译并且测试成功的虚拟机」· C++ 代码 · 共 20 行

CPP
20
字号
#include "stdafx.h"

#include "ScriptTypes.h"


ProgramInstance::ProgramInstance() {
   sleeping = false;
   dead = false;
   programTemplate = NULL;
   a = 0;
   
   stack = new StackItem[STACK_LIMIT];
   activationStack = new Activation[MAX_RECURSION_DEPTH];
}

ProgramInstance::~ProgramInstance() {
  delete[] stack;
  delete[] activationStack;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?