aboutsummaryrefslogtreecommitdiffstats
path: root/executor/_include/flatbuffers
diff options
context:
space:
mode:
authorPaul Chaignon <paul.chaignon@gmail.com>2024-09-08 11:37:59 +0200
committerAleksandr Nogikh <nogikh@google.com>2024-09-09 11:43:00 +0000
commite5005d1750564a41e2ae7fc840131133ded452d6 (patch)
tree87d4c0e0ab03d68d3c505f8ff477aea56097dfc3 /executor/_include/flatbuffers
parent11cbc3b9349d6a8b0e2f98e4a877cfbf4f2774c4 (diff)
compiler: support constants in conditional fields
This commit adds support for using the value of constants in conditional fields in addition to integers and flags. Intuitively, this probably looks like it shouldn't be needed: constants are known so the condition can be resolved ahead of time. It is however useful in the case of templates (example in the next commit) where the type of a field may be interchangeably an integer or a constant: type example_t[TYPE] { f1 TYPE f2 int32 (if[value[f1] == 3]) } type example1 example_t[int64] type example2 example_t[const[0, int64]] Signed-off-by: Paul Chaignon <paul.chaignon@gmail.com>
Diffstat (limited to 'executor/_include/flatbuffers')
0 files changed, 0 insertions, 0 deletions