Repository navigation
fix(port): stub gMapTop/gMapBottom for debug_actions_test - #207
Merged
999sian merged 1 commit intoOct 20, 2026
Merged
Conversation
Follows the existing local-stub pattern for gSave/gArea/gMain; the test target never links the real engine definitions.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this does
Fixes a link failure in the
debug_actions_testtarget:port_debug_actions.creferencesgMapTop/gMapBottom(inPort_DebugAction_FindSafeandPort_DebugAction_WarpTick), but this test's minimal file list never picked up a definition for them. They're only defined in the full engine'sport_linked_stubs.c, which this isolated test deliberately doesn't link.Adds local stubs for both, following the exact same pattern this file already uses for
gSave,gArea,gMain,gRoomControls, etc.Found while investigating a CI failure on PR #206 (unrelated feature work) -- reproduces identically on a clean
mastercheckout, confirming it predates #206 and wasn't introduced by it.Testing
xmake build -y debug_actions_test-- links clean (previously failed withundefined reference to 'gMapBottom''gMapTop')../build/pc/debug_actions_test--DEBUG-ACTIONS REGRESSION OK, exit 0.xmake build -y tmc_pc-- unaffected, still builds clean.Port layer initialized. Entering AgbMain....Tested on Linux (Debian via distrobox).