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

Make OgaModel* const again #356

Merged
merged 3 commits into from
Apr 30, 2024
Merged

Conversation

baijumeswani
Copy link
Collaborator

The changes in #179 was setting a Model member variable at Generator creation time. At Generator creation time, the Model is const and as a result cannot set the member variable.

The intermediate changes that needed to be made to support 0.2.0 release was to make OgaModel* non const in the c api.

This pull-request tries to set the variable at the time of GeneratorParams creation and avoids needing to make const OgaModel* non-const.

Copy link
Member

@yufenglee yufenglee left a comment

Choose a reason for hiding this comment

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

:shipit:

@baijumeswani baijumeswani merged commit afd2edc into main Apr 30, 2024
12 checks passed
@baijumeswani baijumeswani deleted the baijumeswani/make-model-const branch April 30, 2024 21:48
baijumeswani added a commit that referenced this pull request May 1, 2024
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