Mercurial > hg > camir-aes2014
comparison core/tools/cprint.m @ 0:e9a9cd732c1e tip
first hg version after svn
author | wolffd |
---|---|
date | Tue, 10 Feb 2015 15:05:51 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:e9a9cd732c1e |
---|---|
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 |