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

Handle attribute pointer in functions #277

Merged
merged 2 commits into from
Feb 16, 2024
Merged

Handle attribute pointer in functions #277

merged 2 commits into from
Feb 16, 2024

Conversation

djeedai
Copy link
Owner

@djeedai djeedai commented Feb 16, 2024

Ensure that the generated code within a function, which generally accesses the particle attribute struct via a pointer, is emitted with a pointer indirection.

This is a partial fix, as make_fn() could be called with a non-pointer attribute struct, which would break with the reverse error. However for now it's only called in the update context with a pointer.

Fixes #275

Ensure that the generated code within a function, which generally
accesses the particle attribute struct via a pointer, is emitted with a
pointer indirection.

This is a partial fix, as `make_fn()` could be called with a non-pointer
attribute struct, which would break with the reverse error. However for
now it's only called in the update context with a pointer.

Fixes #275
@djeedai djeedai added C - bug Something isn't working A - expressions Change related to the Expression API labels Feb 16, 2024
@djeedai djeedai merged commit ae4ddec into main Feb 16, 2024
13 checks passed
@djeedai djeedai deleted the u/attr-ptr branch February 16, 2024 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A - expressions Change related to the Expression API C - bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

expression must not be a pointer error with RadialAccelModifier
1 participant