package ppx_const

  1. Overview
  2. Docs
Compile-time "if" statement for conditional inclusion of code

Install

Authors

Maintainers

Sources

ppx_const-2.0.1.tar.gz
md5=312df50473157aa8677506437180a496
sha512=b9ee4c3cb85277b60c4fe4aedae75e50cdefdc8b1e822f5ad0774a6cee25d1c866c3387379344c5eba7f80c883727e803973451b1f99290bf0edc05e7cdffe5f

Description

This is a ppx extension which adds if#const and match#const constructs to OCaml. They behave like normal if and match, 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

Published: 20 Nov 2020

Dependencies (3)

  1. ppxlib >= "0.18.0"
  2. ocaml >= "4.04.0"
  3. dune >= "2.0"

Dev Dependencies (3)

  1. odoc with-doc
  2. ppx_getenv with-test & >= "2.0"
  3. ounit2 with-test

Used by

None

Conflicts

None