Note:

You are viewing a development version of the library. Goto the latest version.

let create ?plugin name publication description =
  let () =
    if Hashtbl.mem all_features name then
      failwithf "Feature '%s' is already declared." name
  in
  let t =
    {
      name = name;
      plugin = plugin;
      publication = publication;
      description = description;
    }
  in
    Hashtbl.add all_features name t;
    t