[core] Use placement new allocation for Pvariables (#15079)

Co-authored-by: J. Nick Koston <nick@home-assistant.io>
Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
Kamil Cukrowski
2026-03-22 14:42:04 -10:00
committed by GitHub
co-authored by J. Nick Koston J. Nick Koston
parent e85065b1c4
commit cd05462e9f
17 changed files with 151 additions and 17 deletions
+1 -1
View File
@@ -134,7 +134,7 @@ def generate_main() -> Generator[Callable[[str | Path], str]]:
CORE.config_path = Path(path)
CORE.config = read_config({})
generate_cpp_contents(CORE.config)
return CORE.cpp_main_section
return CORE.cpp_global_section + CORE.cpp_main_section
yield generator