diff options
author | herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2005-12-23 10:16:42 +0000 |
---|---|---|
committer | herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2005-12-23 10:16:42 +0000 |
commit | 1190c6a6d16e87997d1dfef892b16bbf83d62aae (patch) | |
tree | 626c0a631e3d25e286fd79bff1aee58d793f9673 /library | |
parent | 505bcbaa579e01e9d79979e649207d1735a511fa (diff) |
Vérification qu'un module est ouvert avant d'insérer une déclaration nommée (peut arriver en mode -batch sans option -top)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@7710 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'library')
-rw-r--r-- | library/lib.ml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/library/lib.ml b/library/lib.ml index b1896ae5e..d1bb6599a 100644 --- a/library/lib.ml +++ b/library/lib.ml @@ -183,6 +183,8 @@ let add_absolutely_named_leaf sp obj = add_entry sp (Leaf obj) let add_leaf id obj = + if fst (current_prefix ()) = initial_path then + error ("No session module started (use -top dir)"); let oname = make_oname id in cache_object (oname,obj); add_entry oname (Leaf obj); |