blob: 288af67b15e53bfcb488187215cdb466b30a8f96 [file] [log] [blame]
library test.consts;
using zx;
const ENABLED_FLAG bool = true;
const OFFSET int8 = -33;
const ANSWER uint16 = 42;
const ANSWER_IN_BINARY uint16 = 0b101010;
const POPULATION_USA_2018 uint32 = 330000000;
const DIAMOND uint64 = 0x183c7effff7e3c18;
const FUCHSIA uint64 = 4054509061583223046;
const USERNAME string = "\"squeenze\"";
const MIN_TEMP float32 = -273.15;
const CONVERSION_FACTOR float64 = 1.41421358;
const ZX_OBJ_VAL zx.obj_type = zx.obj_type.CHANNEL;
const ZX_RIGHTS_VAL zx.rights = zx.rights.READ;
const ZX_CONST uint64 = zx.CHANNEL_MAX_MSG_BYTES;
type EnumType = strict enum : int32 {
VALUE = 1;
true = 2;
};
const enumVal EnumType = EnumType.VALUE;
const enumPrimitiveVal int32 = EnumType.VALUE;
const enumTrue EnumType = EnumType.true;
const enumPrimitiveTrue int32 = EnumType.true;
type BitsType = strict bits : uint32 {
VALUE = 0x00000001;
true = 2;
};
const bitsVal BitsType = BitsType.VALUE;
const bitsPrimitiveVal uint32 = BitsType.VALUE;
const bitsTrue BitsType = BitsType.true;
const bitsPrimitiveTrue uint32 = BitsType.true;