]> matita.cs.unibo.it Git - helm.git/blob - helm/software/lambda-delta/lib/log.ml
667fef534253c4a0894eb5f74af7a2a08e8e1d9e
[helm.git] / helm / software / lambda-delta / lib / log.ml
1 (*
2     ||M||  This file is part of HELM, an Hypertextual, Electronic        
3     ||A||  Library of Mathematics, developed at the Computer Science     
4     ||T||  Department, University of Bologna, Italy.                     
5     ||I||                                                                
6     ||T||  HELM is free software; you can redistribute it and/or         
7     ||A||  modify it under the terms of the GNU General Public License   
8     \   /  version 2 or (at your option) any later version.              
9      \ /   This software is distributed as is, NO WARRANTY.              
10       V_______________________________________________________________ *)
11
12 module P = Printf
13
14 let init =
15    let started = ref false in
16    fun () ->
17       if !started then () else 
18       begin P.printf "\n"; started := true end
19
20 let warn msg = 
21    init (); P.printf " %s\n" msg; flush stdout