Parameter Make.1-M
val known : (Core_kernel.Int63.t * string) list
An entry
flag, name
inknown
means that the bit(s) inflag
is (are) calledname
; i.e. ifbit_and flags flag = flag
, then the bit(s) is (are) set andname
will appear insexp_of_t flags
.known
is only used to makesexp_of_t
's output human readable.The flags in the output of
sexp_of_t
will occur in the same order as they appear inknown
.It is allowed to have a single flag with multiple bits set.
It is an error if different flags intersect, and
allow_intersecting = false
.
val remove_zero_flags : bool
If
remove_zero_flags
, then all flags with value zero will be automatically removed fromknown
. Ifnot remove_zero_flags
, then it is an error forknown
to contain any flags with value zero.About this existence of this option: it seems better to make it an option here rather than do the filtering at the functor call site. It also makes clear to callers that they need to think about zero flags, and clear what they can do if they encounter them.