Skip to content
Snippets Groups Projects
Commit acc1c544 authored by Virgile Prevosto's avatar Virgile Prevosto Committed by Andre Maroneze
Browse files

[kernel] new function to query whether a given package has been loaded or not.

parent 029e856f
No related branches found
No related tags found
No related merge requests found
......@@ -132,6 +132,8 @@ let once pkg =
if Hashtbl.mem packages pkg then false
else ( Hashtbl.add packages pkg () ; true )
let is_loaded pkg = Hashtbl.mem packages pkg
exception ArchiveError of string
let load_archive pkg base file =
......
......@@ -159,6 +159,9 @@ val load_module: string -> unit
@since Phosphorus-20170501-beta1. *)
val set_module_load_path : string list -> unit
(** [is_loaded package] returns [true] iff [package] has already been loaded.*)
val is_loaded: string -> bool
(**/**)
val load_plugin_path: unit -> unit
(** Load all plugins in the path set with [set_module_load_path].
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment