Address PR review feedback on zam-feature-complete

* insert_or_assign usage
  * master -> primary
  * FunctionIngredientsPtr
  * FuncType::Capture deprecations
  * no new ScriptFunc constructor
This commit is contained in:
Vern Paxson 2023-06-28 18:24:50 -07:00 committed by Arne Welzel
parent 46d3526b40
commit cb15e0d4f1
11 changed files with 71 additions and 53 deletions

View file

@ -432,7 +432,7 @@ public:
bool* is_managed = nullptr;
// Ingredients associated with lambdas ...
ScriptFuncPtr master_func;
ScriptFuncPtr primary_func;
// ... and its name.
std::string lambda_name;
@ -445,7 +445,7 @@ public:
std::unique_ptr<CatArg>* cat_args = nullptr;
// Used for accessing function names.
const ID* id_val = nullptr;
IDPtr id_val = nullptr;
// Whether the instruction can lead to globals/captures changing.
// Currently only needed by the optimizer, but convenient to