config.ml icon indicating copy to clipboard operation
config.ml copied to clipboard

conditional compilation via attributes for OCaml

Results 4 config.ml issues
Sort by recently updated
recently updated
newest added

Currently, this is unsupported: ```ocaml let foo a = function | 0 -> "0" | 1 -> "1" [@@cfg (disable=true)] ``` And the expected behavior is that we can remove...

enhancement
help wanted
good first issue

Currently, this is unsupported: ```ocaml let foo a = match a with | 0 -> "0" | 1 -> "1" [@@cfg (disable=true)] ``` And the expected behavior is that we...

enhancement
help wanted
good first issue

Context: In DkCoder https://discuss.ocaml.org/t/ann-dkcoder-0-1-0/14327 I'm exposing OS/ABI from https://github.com/diskuv/dkml-c-probe as environment variables to scripts, and I've been planning on exposing a `cfg` mechanism. For a lot of reasons 1 I'll...

enhancement
question

This PR is a patch for an upcoming release of ppxlib where the internal AST is [bumped from 4.14 to 5.2](https://github.com/ocaml-ppx/ppxlib/pull/514). Until that is merged and released, there is no...