| // Copyright 2018 The Fuchsia Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| library banjo.examples.enums; |
| |
| type int8_enum = strict enum : int8 { |
| kNegativeOne = -1; |
| kOne = 1; |
| }; |
| |
| type int16_enum = strict enum : int16 { |
| kNegativeOne = -1; |
| kOne = 1; |
| kTwo = 2; |
| }; |
| |
| type int32_enum = strict enum : int32 { |
| kNegativeOne = -1; |
| kOne = 1; |
| kTwo = 2; |
| kThree = 3; |
| }; |
| |
| type int64_enum = strict enum : int64 { |
| kNegativeOne = -1; |
| kOne = 1; |
| kTwo = 2; |
| kThree = 3; |
| kFour = 4; |
| }; |
| |
| type uint8_enum = strict enum : uint8 { |
| kOne = 1; |
| kTwo = 2; |
| kThree = 3; |
| kFour = 4; |
| kFive = 5; |
| }; |
| |
| type uint16_enum = strict enum : uint16 { |
| kOne = 1; |
| kTwo = 2; |
| kThree = 3; |
| kFour = 4; |
| kFive = 5; |
| kSix = 6; |
| }; |
| |
| type uint32_enum = strict enum : uint32 { |
| kOne = 1; |
| kTwo = 2; |
| kThree = 3; |
| kFour = 4; |
| kFive = 5; |
| kSix = 6; |
| kSeven = 7; |
| }; |
| |
| type uint64_enum = strict enum : uint64 { |
| kOne = 1; |
| kTwo = 2; |
| kThree = 3; |
| kFour = 4; |
| kFive = 5; |
| kSix = 6; |
| kSeven = 7; |
| kEight = 8; |
| }; |