diff options
author | Vysheng <mail@vysheng.ru> | 2014-11-12 15:59:45 +0300 |
---|---|---|
committer | Vysheng <mail@vysheng.ru> | 2014-11-12 15:59:45 +0300 |
commit | 859829dc9b9dfab261f2685f1bc6a4b428160a7f (patch) | |
tree | 753f926c0a93041bb3e8db4d02c1ca0c2e7c91fb /tgl-inner.h | |
parent | 2a72b779ca2b93a7458baa716c67408f999bea10 (diff) |
tgl: initial commit
Diffstat (limited to 'tgl-inner.h')
-rw-r--r-- | tgl-inner.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/tgl-inner.h b/tgl-inner.h new file mode 100644 index 0000000..acb3855 --- /dev/null +++ b/tgl-inner.h @@ -0,0 +1,31 @@ +/* + This file is part of tgl-library + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + + Copyright Vitaly Valtman 2014 +*/ + +#ifndef __TGL_INNER_H__ +#define __TGL_INNER_H__ + +#define vlogprintf(verbosity_level,...) \ + do { \ + if (TLS->verbosity >= verbosity_level) { \ + TLS->callback.logprintf (__VA_ARGS__); \ + } \ + } while (0) + +#endif |