Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define macros with CompCert's version number #284

Merged
merged 3 commits into from
Mar 27, 2019
Merged

Commits on Mar 25, 2019

  1. Define macros with CompCert's version number

    As suggested in #282, it can be useful to #ifdef code depending on
    specific versions of CompCert.
    
    Assuming a version number of the form MM.mm or MM.mm.pp
    the following macros are predefined:
    
    __COMPCERT_MAJOR__=MM       (the major version number)
    __COMPCERT_MAJOR__=mm       (the minor version number)
    __COMPCERT_PATCHLEVEL__=pp  (the patchlevel, or 0 if none)
    __COMPCERT_VERSION__=MMmmpp (two decimal digits each, e.g. 30500 for version 3.5)
    xavierleroy committed Mar 25, 2019
    Configuration menu
    Copy the full SHA
    46d52d3 View commit details
    Browse the repository at this point in the history

Commits on Mar 27, 2019

  1. Configuration menu
    Copy the full SHA
    8417954 View commit details
    Browse the repository at this point in the history
  2. Get rid of __COMPCERT_PATCHLEVEL__ and simplify __COMPCERT_VERSION__

    Major and minor numbers are enough, we don't need a patchlevel.
    As a consequence __COMPCERT_VERSION__ is 305, not 30500, for version 3.05.
    xavierleroy committed Mar 27, 2019
    Configuration menu
    Copy the full SHA
    4ef011c View commit details
    Browse the repository at this point in the history