OSDN Git Service

(no commit message)
[ccunit/ccunit.git] / src / ccunit / CCUnitLogMessage.h
1 /*
2  * output messages.
3  *
4  * $Id$
5  */
6 /* Copyright (C) 2003 TSUTSUMI Kikuo.
7    This file is part of the CCUnit Library.
8
9    The CCUnit Library is free software; you can redistribute it and/or
10    modify it under the terms of the GNU Lesser General Public License
11    as published by the Free Software Foundation; either version 2.1 of
12    the License, or (at your option) any later version.
13
14    The CCUnit Library is distributed in the hope that it will be
15    useful, but WITHOUT ANY WARRANTY; without even the implied warranty
16    of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17    GNU Lesser General Public License for more details.
18
19    You should have received a copy of the GNU Lesser General Public
20    License along with the CCUnit Library; see the file COPYING.LESSER.
21    If not, write to the Free Software Foundation, Inc., 59 Temple
22    Place - Suite 330, Boston, MA 02111-1307, USA.  
23 */
24
25 #ifndef CCUNITLOGMASSAGE_H
26 #define CCUNITLOGMASSAGE_H
27
28 #include <ccunit/CCUnitConfig.h>
29
30 /**
31  * flag for print debug message.
32  */
33 extern bool _ccunit_debug_message;
34
35 /**
36  * flag for print log message.
37  */
38 extern bool _ccunit_verbose_message;
39
40 /**
41  * print debug message.
42  * @param fmt message format string.
43  * @param ... message arguments.
44  */
45 extern inline void ccunit_dbg (const char* fmt, ...)
46   __attribute__ ((format (printf, 1, 2)));
47
48 /**
49  * print log message.
50  * @param fmt message format string.
51  * @param ... message arguments.
52  */
53 extern inline void ccunit_log (const char* fmt, ...)
54   __attribute__ ((format (printf, 1, 2)));
55
56 /**
57  * print error message.
58  * @param fmt message format string.
59  * @param ... message arguments.
60  */
61 extern inline void ccunit_err (const char* fmt, ...)
62   __attribute__ ((format (printf, 1, 2)));
63
64 /**
65  * print message.
66  * @param fmt message format string.
67  * @param ... message arguments.
68  */
69 extern inline void ccunit_msg (const char* fmt, ...)
70   __attribute__ ((format (printf, 1, 2)));
71
72 #endif