Change the way the lua engine initialization functions are called
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user