Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verify data table sizes with table_width and assert_table_length macros #806

Merged
merged 3 commits into from
Mar 8, 2021

Conversation

Rangi42
Copy link
Member

@Rangi42 Rangi42 commented Mar 4, 2021

This was discussed in #706

It also uncovered some off-by-one issues with defining some constants.

A few structs now use rsreset/_RS to define their offset constants, as discussed in #739

@Rangi42 Rangi42 requested review from mid-kid and dannye March 4, 2021 03:23
@Rangi42
Copy link
Member Author

Rangi42 commented Mar 4, 2021

Once this is finalized it should also be applied to pokegold, pokered, and pokeyellow.

Copy link
Contributor

@aaaaaa123456789 aaaaaa123456789 left a comment

Choose a reason for hiding this comment

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

Overall a very positive change; I've marked a few odd things here and there.

constants/gfx_constants.asm Outdated Show resolved Hide resolved
data/battle_tower/classes.asm Outdated Show resolved Hide resolved
data/moves/effects_pointers.asm Outdated Show resolved Hide resolved
data/pokemon/palettes.asm Show resolved Hide resolved
engine/items/item_effects.asm Outdated Show resolved Hide resolved
@Rangi42 Rangi42 changed the title Verify data table sizes with table_width and check_table_length macros Verify data table sizes with table_width and assert_table_length macros Mar 4, 2021
data/battle_anims/objects.asm Show resolved Hide resolved
constants/pokemon_data_constants.asm Outdated Show resolved Hide resolved
constants/pokemon_data_constants.asm Show resolved Hide resolved
This was discussed in pret#706

It also uncovered some off-by-one issues with defining some constants.

A few structs now use rsreset/_RS to define their offset constants, as discussed in pret#739
@Rangi42 Rangi42 requested a review from dannye March 4, 2021 23:16
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.

3 participants