123456789101112131415161718192021222324252627(**************************************************************************)(* *)(* OCaml *)(* *)(* Xavier Leroy, projet Cristal, INRIA Rocquencourt *)(* *)(* Copyright 1996 Institut National de Recherche en Informatique et *)(* en Automatique. *)(* *)(* All rights reserved. This file is distributed under the terms of *)(* the GNU Lesser General Public License version 2.1, with the *)(* special exception on linking described in the file LICENSE. *)(* *)(**************************************************************************)(* Registering OCaml values with the C runtime for later callbacks *)externalregister_named_value:string->Obj.t->unit="caml_register_named_value"letregisternamev=register_named_valuename(Obj.reprv)letregister_exceptionname(exn:exn)=letexn=Obj.reprexninletslot=ifObj.tagexn=Obj.object_tagthenexnelseObj.fieldexn0inregister_named_valuenameslot