Test type sizes#30
Merged
Free-Pascal-meets-SDL-Website merged 4 commits intoPascalGameDevelopment:mainfrom Jun 6, 2025
Merged
Conversation
This commit adds a bash script that generates two small prorgrams, one in Pascal and the second one in C. The programs print the size of each SDL_* type. The outputs are then compared to check for any discrepancies.
SDL 3.2.12 added two more fields to this record: 'integer_x' and 'integer_y'.
This change necessitates switching from running the CI job straight on the GitHub Actions Ubuntu runner to using a container, as the runners use an old Ubuntu version that does not ship SDL3.
Contributor
|
Wow thanks, dirty indeed though... I wonder, if it is really necessary to run this test script on a regular basis on committing? Maybe having it residing in the test folder for a manual check now and then could be sufficient. Nevertheless, let's go with it as proposed by you and see :). |
bac7fc4
into
PascalGameDevelopment:main
3 checks passed
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.
This PR adds a quick-and-dirty bash script that generates two programs: one in Pascal, and the other in C. The programs print a list of sizes of
SDL_*types. The outputs are then compared for any discrepancies.