English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
OCaml Int64 <-> C int64_t
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Mathias Kende <mathias@k...>
Subject: Re: [Caml-list] OCaml Int64 <-> C int64_t
Le mercredi 18 août 2010 à 13:28 -0400, Jianzhou Zhao a écrit :
> But mlvalues.h does not declare them to use. How can I
> convert int64 to value?

caml_copy_int64 is declared in <caml/alloc.h>. There is no Val_int64
macro because int64 values are heap objects which must be allocated (the
Val_... macros are mostly just static_cast).