ppx_constversion Documentation on ocaml.org
Compile-time "if" statement for conditional inclusion of code.
This is a ppx extension which adds if#const and match#const constructs to
OCaml. They behave like normal if and const, but conditions are evaluated
at compile time and AST sections not selected are excluded from the program
completely. In conjunction with ppx_getenv, this can be used for conditional
compilation of code.
| Tags | syntax |
|---|---|
| Author | Andi McClure <andi.m.mcclure@gmail.com> |
| License | CC0-1.0+ |
| Published | |
| Homepage | https://github.com/mcclure/ppx_const |
| Issue Tracker | https://github.com/mcclure/ppx_const/issues |
| Maintainer | Andi McClure <andi.m.mcclure@gmail.com> |
| Dependencies |
|
| Source [http] | https://github.com/mcclure/ppx_const/archive/ppx_const-1.1.tar.gz sha256=882d6ba2b51b5087f74c77f4918a7e79db6e9dc88ff3e0ea365c4d81b1b7d8e2 md5=53f811ffb931d9b8242ee1ddf9bf4e47 |
| Edit | https://github.com/ocaml/opam-repository/tree/master/packages/ppx_const/ppx_const.1.1/opam |
No package is dependent


