(main): Fix interwoven brace and cpp conditional nesting.