Skip to content

Commit

Permalink
[fix] bsl: Don't clear built-in plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
BourgerieQuentin committed Sep 5, 2012
1 parent 653a053 commit 1ab9d85
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions compiler/libbsl/bslPluginTable.ml
Expand Up @@ -42,7 +42,11 @@ let private_last_finalize = ref None
let pp_item fmt t = Format.pp_print_string fmt (ItemPlugin.index t)

let clear () =
let x =
Hashtbl.find_opt table None
in
Hashtbl.clear table;
Option.iter (fun plugin -> Hashtbl.add table None plugin) x;
private_last_finalize := None

let finalize () =
Expand Down

0 comments on commit 1ab9d85

Please sign in to comment.