diff options
| author | Paul Chaignon <paul.chaignon@gmail.com> | 2023-11-10 17:56:02 +0100 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2023-11-28 10:18:54 +0000 |
| commit | 0f164300b33f421468051a8815711503a34cd49c (patch) | |
| tree | 38e68ee43424e7aef3318d74102304f83b66d18a /docs/linux/setup_linux-host_android-device_arm-kernel.md | |
| parent | 2e35bb9a19c0711162e650f3723e2dbe061051ee (diff) | |
compiler: support const as int first argument
This commit adds support for the following syntax:
int8[constant]
as an equivalent to:
const[constant, int8]
The goal is to have a unified const/flags definition that we can use in
templates. For example:
type template[CLASS, ...] {
class int8:3[CLASS]
// ...
}
type singleClassType template[SINGLE_CONST]
type subClassType template[abc_class_flags]
In this example, the CLASS template field can be either a constant or a
flag. This is especially useful when defining both a generic instance of
the template as well as specialized instances (ex. bpf_alu_ops and
bpf_add_op).
Signed-off-by: Paul Chaignon <paul.chaignon@gmail.com>
Diffstat (limited to 'docs/linux/setup_linux-host_android-device_arm-kernel.md')
0 files changed, 0 insertions, 0 deletions
