caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: rixed@happyleptic.org
To: caml-list@yquem.inria.fr
Subject: Checking for caml version from C
Date: Wed, 15 Sep 2010 21:29:54 +0200	[thread overview]
Message-ID: <20100915192954.GA8555@yeeloong> (raw)

Hello !

I'm using ocaml 3.11 and 3.12 and I'm writting some C code
that use caml_enter/leave_blocking_section. I'd like to know if
there is a standard way to check for Ocaml version with the C preprocessor
in order to switch to caml_release/acquire_runtime_system if version is
>= 3.12 ?

I grepped for VERSION in all the caml/*.h files without success.
How am I supposed to do ?



             reply	other threads:[~2010-09-15 19:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-15 19:29 rixed [this message]
2010-09-15 21:14 ` [Caml-list] " Kaustuv Chaudhuri

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100915192954.GA8555@yeeloong \
    --to=rixed@happyleptic.org \
    --cc=caml-list@yquem.inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).