Skip to content
New issue

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

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

Already on GitHub? # to your account

Change when to generate wxue function declaration/definition #1324

Merged
merged 2 commits into from
Dec 2, 2023

Conversation

Randalphwa
Copy link
Collaborator

If there is an Image List file, then all wxue functions are in that file, and declared in the header file that is #included in the source file.

If there is no Image List file, then either a declaration or definition must be generated.

This PR fixes a regression caused by #1323. While that PR improved code generation if there is an Image List file, it broke code generation if there is no Image List file. This PR fixes that regression.

Create a copy of sdi called sdi_31 which does not have an Image List file and is set to generate 3.1 compatible code. This would provide testing for the more common scenario of no Image List file, while at the same time verifying that code generation for wxWidgets 3.1 is working correctly.

KeyWorksRW/wxUiTesting#19 was created in part to track any potential problems between projects with and without Image List files.

If there is an Image List file, then all wxue functions are in that file, and declared
in the header file that is #included in the source file.

If there is no Image List file, then either a declaration or definition must
be generated.
Because of this issue, any time this file is generated, it has to be manually
reformatted with clang-format.
@Randalphwa Randalphwa merged commit f68d4b5 into main Dec 2, 2023
@Randalphwa Randalphwa deleted the wxue_functions branch December 2, 2023 13:29
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant