1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
build_enum!{
    @ARRAY
    @ENUM Platform {
        Bit32,
        Bit64
    }
    @TOFUNC to_platform => Platform {
        b"\x01" => Platform::Bit32,
        b"\x02" => Platform::Bit64
        ;
        "\n\nValue {:?} is non-standard for EI_CLASS\n\n"
    }
    @PUB
        read_platform;
        1
}