fix(Button): keep friend declarations consistent with identical binaries #1178
Reference in New Issue
Block a user
Delete Branch "agent/bittle/button-friend-declaration"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Delete four conditional-preprocessor directives around the existing push_button_queue forward declaration and Button friend. The class definition previously had different tokens depending on IPL_BUTTON_IMPLEMENTATION, violating the C++ one-definition rule across translation units. Declarations, namespace, C linkage, access position, wrapper body, symbols, flags and layout are unchanged. The now-unused source macro is deliberately left alone.
Independent verification
f22468d1e8and repeated full build/DOL checksEvidence: tools/decomp-assist/button-friend-declaration.attempts.md. This fixes source consistency with no percentage gain or unrelated changes. No merge performed.
Reviewed and merged: rebased on main, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden patterns.