// D:\Dev\Mosis\MosisService\designer\src\platform_singleton.cpp // Platform singleton implementation for desktop #include "platform.h" #include namespace mosis { // Platform singleton static std::unique_ptr g_platform; IPlatform& GetPlatform() { if (!g_platform) { throw std::runtime_error("Platform not initialized. Call SetPlatform first."); } return *g_platform; } void SetPlatform(std::unique_ptr platform) { g_platform = std::move(platform); } } // namespace mosis