Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
trace.ml1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21(**********************************************************************) (* *) (* This file is part of the RFSM package *) (* *) (* Copyright (c) 2018-present, Jocelyn SEROT. All rights reserved. *) (* *) (* This source code is licensed under the license found in the *) (* LICENSE file in the root directory of this source tree. *) (* *) (**********************************************************************) open Printf let level = ref 0 let print_tab l = printf "%s" (String.make (max ((l-1)*2) 0) ' ') let msg0 l m = if !level >= l then begin print_tab l; printf m; flush stdout end let msg1 l m x = if !level >= l then begin print_tab l; printf m x; flush stdout end let msg2 l m x y = if !level >= l then begin print_tab l; printf m x y; flush stdout end let msg3 l m x y z = if !level >= l then begin print_tab l; printf m x y z; flush stdout end