Change the way the lua engine initialization functions are called

This commit is contained in:
2026-02-25 03:43:44 -05:00
parent 95cd378dc0
commit cc629227a5
7 changed files with 60 additions and 129 deletions

View File

@@ -56,7 +56,6 @@
class DrivenEngine;
using UniqueDrivenEngine = std::unique_ptr<DrivenEngine>;
using DrivenEngineMaker = UniqueDrivenEngine (*)(EngineWrapper *);
using DrivenEngineInitializer = void (*)();
class Channel : public eng::opnew {
@@ -134,6 +133,8 @@ public:
static void print_usage(std::ostream &strm, std::string_view progname);
static void init_engine_wrapper(EngineWrapper *w);
//////////////////////////////////////////////////////////////
//
// The following methods are the 'engine' side of the pipe.
@@ -320,7 +321,3 @@ struct DrivenEngineReg {
} \
DrivenEngineReg dengreg_##cname(name, dengmake_##cname);
struct DrivenEngineInitializerReg {
static DrivenEngineInitializer func;
DrivenEngineInitializerReg(DrivenEngineInitializer f);
};