fix(libc): define APS5_LOG_OUT_DEBUG when APS5_DEBUG_LOG is set #2215

Merged
Zheorgyan merged 1 commit from upstream-pr/2215 into main 2026-10-10 04:45:17 +00:00
Zheorgyan commented 2026-10-09 11:49:51 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Zheorgyan on 2026-10-09T11:49:51Z.


What

with APS5_DEBUG_LOG defined, LogMacros.hpp defines APS5_LOG_DEBUG, which nothing uses, and leaves APS5_LOG_OUT_DEBUG undefined, so Pm4.cpp, VulkanDevice.cpp and State.cpp stop compiling and the debug logs can't be turned on. the macro under APS5_DEBUG_LOG is APS5_LOG_OUT_DEBUG now, matching the #else branch

Tested

  • Linux, Ubuntu 24.04 in Docker, GCC 14.2. the four files that use the debug macros, Pm4.cpp, VulkanDevice.cpp, Draw.cpp and State.cpp, compiled with their build commands plus -DAPS5_DEBUG_LOG. before, three fail with "'APS5_LOG_OUT_DEBUG' was not declared in this scope", after, all four compile. without the define nothing changes
  • tools/check_conventions.py passes

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4800001794 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2215). Originally posted by [Zheorgyan](https://github.com/Zheorgyan) on 2026-10-09T11:49:51Z. --- ### What with `APS5_DEBUG_LOG` defined, `LogMacros.hpp` defines `APS5_LOG_DEBUG`, which nothing uses, and leaves `APS5_LOG_OUT_DEBUG` undefined, so `Pm4.cpp`, `VulkanDevice.cpp` and `State.cpp` stop compiling and the debug logs can't be turned on. the macro under `APS5_DEBUG_LOG` is `APS5_LOG_OUT_DEBUG` now, matching the `#else` branch ### Tested - Linux, Ubuntu 24.04 in Docker, GCC 14.2. the four files that use the debug macros, `Pm4.cpp`, `VulkanDevice.cpp`, `Draw.cpp` and `State.cpp`, compiled with their build commands plus `-DAPS5_DEBUG_LOG`. before, three fail with "'APS5_LOG_OUT_DEBUG' was not declared in this scope", after, all four compile. without the define nothing changes - `tools/check_conventions.py` passes ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes
MarcZX10 commented 2026-10-09 12:36:16 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T12:36:16Z.


Reviewed the full diff. Renaming the enabled-branch macro to APS5_LOG_OUT_DEBUG matches the disabled branch and the call sites described in the PR; the reported compile checks exercise the affected translation units. Conventions passes. The full Build workflow is not present on this head, so I am holding formal approval until an authorized collaborator runs it on the exact PR revision.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6081014148 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2215#issuecomment-6081014148). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-09T12:36:16Z. --- Reviewed the full diff. Renaming the enabled-branch macro to `APS5_LOG_OUT_DEBUG` matches the disabled branch and the call sites described in the PR; the reported compile checks exercise the affected translation units. Conventions passes. The full Build workflow is not present on this head, so I am holding formal approval until an authorized collaborator runs it on the exact PR revision.
popcoder565 commented 2026-10-09 15:47:09 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by popcoder565 on 2026-10-09T15:47:09Z.


Native Windows run, since no Windows results were posted. Setup: Windows 10 (19045), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release. Head eec5c182, merged onto main d70b8998 in one build with 38 other PRs that had no Windows run.

  • This PR has no test of its own. It builds, and the full suite passes.
  • Full ctest in that build: 519 of 519. That needed local fixes to three other PRs in the batch that don't build or pass on Windows: #1611, #1796 and #1824 (reported there).

No title was run.

🤖 Addressed by Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6084283198 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2215#issuecomment-6084283198). Originally posted by [popcoder565](https://github.com/popcoder565) on 2026-10-09T15:47:09Z. --- Native Windows run, since no Windows results were posted. Setup: Windows 10 (19045), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release. Head `eec5c182`, merged onto `main` d70b8998 in one build with 38 other PRs that had no Windows run. - This PR has no test of its own. It builds, and the full suite passes. - Full ctest in that build: 519 of 519. That needed local fixes to three other PRs in the batch that don't build or pass on Windows: #1611, #1796 and #1824 (reported there). No title was run. _🤖 Addressed by [Claude Code](https://claude.com/claude-code)_
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!2215
No description provided.