Skip to content

Make GetMonData and GetBoxMonData ABI-safe#763

Open
AZero13 wants to merge 1 commit into
pret:masterfrom
AZero13:getmondata
Open

Make GetMonData and GetBoxMonData ABI-safe#763
AZero13 wants to merge 1 commit into
pret:masterfrom
AZero13:getmondata

Conversation

@AZero13

@AZero13 AZero13 commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Clang and LLVM hate this, so instead I am doing the manual work of using macros to do the equivalent of a default parameter in C++ to avoid work downstream.

Clang and LLVM hate this, so instead I am doing the manual work of using macros to do the equivalent of a default parameter in C++ to avoid work downstream.
Comment thread src/pokemon.c
Comment on lines +2984 to +2988
#ifndef UBFIX
u32 GetBoxMonData3(struct BoxPokemon *boxMon, s32 field, u8 *data)
#else
u32 GetBoxMonData(struct BoxPokemon *boxMon, s32 field, u8 *data)
#endif

@mrgriffin mrgriffin Jun 17, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interestingly, these lines of code are different in pret/pokeemerald#2315 (at time of writing: in case of a force push see pret/pokeemerald@6f9c1a4).

(Admittedly, different in a way that I think is worse that what's here.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants