File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -337,6 +337,16 @@ void Engine::registerSection(std::shared_ptr<IBlockSection> section)
337337 }
338338}
339339
340+ std::vector<std::shared_ptr<IBlockSection>> Engine::registeredSections () const
341+ {
342+ std::vector<std::shared_ptr<IBlockSection>> ret;
343+
344+ for (const auto &[key, value] : m_sections)
345+ ret.push_back (key);
346+
347+ return ret;
348+ }
349+
340350unsigned int Engine::functionIndex (BlockFunc f)
341351{
342352 auto it = std::find (m_functions.begin (), m_functions.end (), f);
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ class Engine : public IEngine
4444 void lockFrame () override ;
4545
4646 void registerSection (std::shared_ptr<IBlockSection> section) override ;
47+ std::vector<std::shared_ptr<IBlockSection>> registeredSections () const ;
4748 unsigned int functionIndex (BlockFunc f) override ;
4849
4950 void addCompileFunction (IBlockSection *section, const std::string &opcode, BlockComp f) override ;
You can’t perform that action at this time.
0 commit comments