diff options
| author | Paul Chaignon <paul.chaignon@gmail.com> | 2024-03-01 17:02:06 +0100 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2024-03-01 17:12:18 +0000 |
| commit | 25905f5d0a2a7883bd33491997556193582c6059 (patch) | |
| tree | c794c7e216531861542cfeb66f89ae26480b819d /.github | |
| parent | 83acf9e00cea13b199346aea4d72094a03cef0ca (diff) | |
compiler: support using int flags in field conditions
Commit ed571339c6ff ("pkg/compiler: support if[expr] attributes") added
support for conditional fields in structs and unions. Conditions however
cannot refer to flags, as in the following example:
struct {
f0 flags[some_flags, int32]
f1 int32 (if[value[f0] & FLAG1])
} [packed]
It will fail to compile with:
flags does not refer to an integer
This commit adds support for that syntax.
Signed-off-by: Paul Chaignon <paul.chaignon@gmail.com>
Diffstat (limited to '.github')
0 files changed, 0 insertions, 0 deletions
