File ocaml-assert.patch of Package ocaml
part of commit adcb4497968dbdc1b0db97998488ad20c02fe225 from 4.06 --- a/byterun/caml/minor_gc.h +++ b/byterun/caml/minor_gc.h @@ -99,7 +99,7 @@ static inline void add_to_ephe_ref_table ephe_ref = tbl->ptr++; ephe_ref->ephe = ar; ephe_ref->offset = offset; - Assert(ephe_ref->offset < Wosize_val(ephe_ref->ephe)); + CAMLassert(ephe_ref->offset < Wosize_val(ephe_ref->ephe)); } static inline void add_to_custom_table (struct caml_custom_table *tbl, value v,