comparison core/tools/cprint.m @ 0:cc4b1211e677 tip

initial commit to HG from Changeset: 646 (e263d8a21543) added further path and more save "camirversion.m"
author Daniel Wolff
date Fri, 19 Aug 2016 13:07:06 +0200
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:cc4b1211e677
1 function cprint(l, varargin)
2 % ---
3 % function cprint(l, varargin)
4 %
5 % sprintfs statement varargin if verbosity level
6 % globalvars.debug >= l
7 %
8 % lvl 1: error / very important info
9 % lvl 2 : warning, mid-level runtime info
10 % lvl 3 : high-frequency runtime / debug info
11 %
12 % ---
13
14 global globalvars;
15
16 if isfield(globalvars, 'debug') && globalvars.debug >= l
17 display(sprintf(varargin{:}));
18 end
19 end