fixes for initializing scripts compiled to C++

This commit is contained in:
Vern Paxson 2022-09-29 15:09:37 -07:00
parent 1af905a14f
commit 5c21240daf
3 changed files with 8 additions and 2 deletions

View file

@ -439,6 +439,9 @@ ListTypeInfo::ListTypeInfo(CPPCompile* _c, TypePtr _t)
if ( gi )
init_cohort = max(init_cohort, gi->InitCohort());
}
if ( ! types.empty() )
++init_cohort;
}
void ListTypeInfo::AddInitializerVals(std::vector<std::string>& ivs) const