enforce ctx in constructor

Signed-off-by: Faumaray <faumaray@gmail.com>
This commit is contained in:
faumaray committed 2025-10-20 01:04:53 +03:00
1 parent 175f6cb5c1
commit 766c612cf8
1 file changed
+2
+2
View File
@@ -36,6 +36,8 @@ public:
virtual void onStart() = 0;
virtual void onStop() = 0;
virtual ~Mod() = default;
virtual constexpr std::string_view Name() = 0;
virtual constexpr std::string_view Version() = 0;
Context m_ctx;
// T provides: T(const Context&), onStart(), onStop()
};