Skip to content

Define routine documentation format#1247

Open
emilyploszaj wants to merge 1 commit intoRangi42:10bit-movesfrom
emilyploszaj:10bit/routine-documentation
Open

Define routine documentation format#1247
emilyploszaj wants to merge 1 commit intoRangi42:10bit-movesfrom
emilyploszaj:10bit/routine-documentation

Conversation

@emilyploszaj
Copy link
Copy Markdown
Collaborator

This PR proposes a format for rigorous routine documentation and applies it to a bunch of high traffic routines. Let me know any thoughts you have on the formatting, it's not set in stone.

Additionally, a fallthrough macro has been added. All it does is validate that the fallthrough hasn't had code inserted, slightly more reasonable than a fallthrough comment.

Once this has been discussed and merged, I'll be applying more documentation across high traffic routines in the codebase, particularly around 10bit move expansion. If it ends up being useful, we can think about porting it upstream to pokecrystal.

@vulcandth vulcandth added docs Re: documentation (comments, .md files, or the wiki) 10-bit 10-bit move and item IDs labels Oct 11, 2025
@vulcandth vulcandth added this to the 4.0.0 milestone Oct 13, 2025
@vulcandth
Copy link
Copy Markdown
Collaborator

Most of our routine comments are under the routine label. Is there a precedent for IDE's to read it above the label?

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

Labels

10-bit 10-bit move and item IDs docs Re: documentation (comments, .md files, or the wiki)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants