ppx_constversion

Compile-time "if" statement for conditional inclusion of code.

This is a ppx extension which adds an if#const construct to OCaml. It behaves like normal if, but the condition is evaluated at compile time and the AST section not selected is excluded from the program completely. In conjunction with ppx_getenv, this can be used for conditional compilation of code.

Tags syntax
AuthorAndi McClure <andi.m.mcclure@gmail.com>
LicenseCC0-1.0+
Published
Homepagehttps://github.com/mcclure/ppx_const
Issue Trackerhttps://github.com/mcclure/ppx_const/issues
MaintainerAndi McClure <andi.m.mcclure@gmail.com>
Dependencies
Source [http] https://github.com/mcclure/ppx_const/archive/ppx_const-1.0.tar.gz
sha256=86bae9587a974199397459f0b08a5affd1d260a2f65c0e0f80308cdd58eba20d
md5=c1351efbb013eb656b0202ed021ee42b
Edithttps://github.com/ocaml/opam-repository/tree/master/packages/ppx_const/ppx_const.1.0/opam
No package is dependent