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

dialects: (csl) set_tile_code fix traits #2712

Merged
merged 1 commit into from
Jun 12, 2024

Conversation

dk949
Copy link
Collaborator

@dk949 dk949 commented Jun 12, 2024

set_tile_code does not have to be a direct child of layout, e.g. it can be used in a loop. But it does have to occur in a layout.

NOTE: the parameter to set_tile_code is specified as ComptimeStructType, not StructLike. This is semantically correct (though undocumented), i.e. you can't do this:

const my_params = @import_module("my_params.csl")
...
@set_tile_code(..., my_params);

`set_tile_code` does not have to be a direct child of `layout`, e.g. it can
be used in a loop. But it does have to occur in a `layout`.

_NOTE_: the parameter to `set_tile_code` is specified as
`ComptimeStructType`, not `StructLike`. This is semantically correct
(though undocumented), i.e. you can't do this:

```zig
const my_params = @import_module("my_params.csl")
...
@set_tile_code(..., my_params);
```

Not that this is likely to happen.
@dk949 dk949 added the dialects Changes on the dialects label Jun 12, 2024
@dk949 dk949 requested review from AntonLydike and n-io June 12, 2024 15:23
@dk949 dk949 self-assigned this Jun 12, 2024
Copy link

codecov bot commented Jun 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.87%. Comparing base (2d2e3e5) to head (ebb8774).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2712   +/-   ##
=======================================
  Coverage   89.87%   89.87%           
=======================================
  Files         367      367           
  Lines       47442    47442           
  Branches     7228     7228           
=======================================
  Hits        42638    42638           
  Misses       3694     3694           
  Partials     1110     1110           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@AntonLydike AntonLydike left a comment

Choose a reason for hiding this comment

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

🙏 Literally just ran into this!

@AntonLydike AntonLydike merged commit 8e02c21 into main Jun 12, 2024
10 checks passed
@AntonLydike AntonLydike deleted the david/csl-dialect/set_tile_code_fix branch June 12, 2024 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dialects Changes on the dialects
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants