Root-side changes for the wasm-port-rebase work: - kicad submodule bumped to wasm-port-rebase (43-commit rebase onto KiCad 10.0.4 + the KiCad-10 WASM source adaptations) - wasm/kiplatform/policy.cpp: GetPolicyEnumUInt -> std::optional (KiCad 10 API) - wasm/stubs/api_plugin_stub.cpp: API_PLUGIN_MANAGER signature sync (KiCad 10 API) Compiles 100% for pcbnew (3D viewer on, -O1); WASM link + e2e parity still pending. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
28 lines
564 B
C++
28 lines
564 B
C++
/*
|
|
* WASM implementation of kiplatform/policy.h
|
|
* Policies are not configured in browser environment
|
|
*/
|
|
|
|
#include <kiplatform/policy.h>
|
|
#include <wx/string.h>
|
|
#include <optional>
|
|
|
|
namespace KIPLATFORM
|
|
{
|
|
namespace POLICY
|
|
{
|
|
|
|
PBOOL GetPolicyBool( const wxString& aKey )
|
|
{
|
|
// No enterprise policies in browser environment
|
|
return PBOOL::NOT_CONFIGURED;
|
|
}
|
|
|
|
std::optional<std::uint32_t> GetPolicyEnumUInt( const wxString& aKey )
|
|
{
|
|
// No enterprise policies in browser environment
|
|
return std::nullopt;
|
|
}
|
|
|
|
} // namespace POLICY
|
|
} // namespace KIPLATFORM
|