Skip to content

frontend: obs-main Windows logging hooks in a self-guarded header (#865) - #2167

Merged
zackees merged 2 commits into
masterfrom
facade/865-log
Oct 24, 2026
Merged

zackees merged 2 commits into
masterfrom
facade/865-log

Conversation

@zackees

@zackees zackees commented Oct 24, 2026

Copy link
Copy Markdown
Member

Refs #865 (slice 1 of 3).

RED: the test commit adds test_frontend_obs_main_host, which fails to compile because frontend/utility/obs-main-windows.hpp doesn't exist yet.
GREEN:

  • obs-main-windows.hpp is wrapped in its own _WIN32 guard and is included from the obs-main PCH. It holds the debugger output (OutputDebugStringW) and the OBS_DEBUGBREAK_ON_ERROR break.
  • do_log no longer tests platform macros. It always copies the va_list, and echoes log lines to the console where the Windows header is absent; whether it echoes before or after the level check still follows _DEBUG. Behavior is unchanged.
  • obs-main.cpp.hpp goes from 26 ratchet findings to 20.

Tier 2 only. No Rust code and no user-visible change.

@zackees
zackees added this pull request to the merge queue Oct 24, 2026
Merged via the queue into master with commit c0c30e3 Oct 24, 2026
35 checks passed
@zackees
zackees deleted the facade/865-log branch October 26, 2026 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant