CCUnit  2.1
A C Unit Testing Library
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
LogMessage
Module Hierarchy

Output messages. More...

Collaboration diagram for LogMessage:

Functions

static int stackdir (const int *caller)
 return stack growing direction.
static int nestings ()
 count msg function call nestings
static void msg (const char *prompt, const char *fmt, va_list args)
 print message.
void ccunit_dbg (const char *fmt,...)
 print debug message.
void ccunit_log (const char *fmt,...)
 print log message.
void ccunit_err (const char *fmt,...)
 print error message.
void ccunit_msg (const char *fmt,...)
 print message.

Variables

bool _ccunit_debug_message = false
 debug message flag.
bool _ccunit_verbose_message = false
 verbose message flag.
bool _ccunit_debug_message
 flag for print debug message.
bool _ccunit_verbose_message
 flag for print log message.

Detailed Description

Output messages.


Function Documentation

void ccunit_dbg ( const char *  fmt,
  ... 
)
inline

print debug message.

Parameters:
fmtmessage format string.
...message arguments.

References _ccunit_debug_message, and msg().

Referenced by getEndOfTest(), getTestName(), readDocComment(), readDocCommentContents(), and readTestFunc().

Here is the call graph for this function:

Here is the caller graph for this function:

void ccunit_err ( const char *  fmt,
  ... 
)
inline

print error message.

Parameters:
fmtmessage format string.
...message arguments.

References msg().

Referenced by ccunit_makeSuite(), ccunit_readSuite(), getTestName(), readDocCommentContents(), readSuite(), readTestCase(), and readTestFunc().

Here is the call graph for this function:

Here is the caller graph for this function:

void ccunit_log ( const char *  fmt,
  ... 
)
inline

print log message.

Parameters:
fmtmessage format string.
...message arguments.

References _ccunit_debug_message, _ccunit_verbose_message, and msg().

Referenced by addTestCaseDef(), addTestSuiteDef(), getEndOfTest(), newFuncDef(), newTestCaseDef(), printPrototype(), printPrototypes(), readDocCommentContents(), readline(), and readTestCase().

Here is the call graph for this function:

Here is the caller graph for this function:

void ccunit_msg ( const char *  fmt,
  ... 
)
inline

print message.

Parameters:
fmtmessage format string.
...message arguments.

References msg().

Here is the call graph for this function:

static void msg ( const char *  prompt,
const char *  fmt,
va_list  args 
)
static

print message.

Parameters:
promptmessage prompt string.
fmtmessage format string for printf.
argsmessage arguments.

References nestings().

Referenced by ccunit_dbg(), ccunit_err(), ccunit_log(), and ccunit_msg().

Here is the call graph for this function:

Here is the caller graph for this function:

static int nestings ( )
static

count msg function call nestings

Returns:
1 when function nested, -1 when function returned, 0 when function is same level.

References stackdir().

Referenced by msg().

Here is the call graph for this function:

Here is the caller graph for this function:

static int stackdir ( const int *  caller)
static

return stack growing direction.

Parameters:
callerstack variable address of caller function.
Returns:
1 when stack growing up, -1 when stack growing down.

Referenced by nestings().

Here is the caller graph for this function:


Variable Documentation

bool _ccunit_debug_message = false

debug message flag.

flag for print debug message.

Referenced by ccunit_dbg(), ccunit_log(), and ccunit_makeSuite().

bool _ccunit_debug_message

flag for print debug message.

Referenced by ccunit_dbg(), ccunit_log(), and ccunit_makeSuite().

bool _ccunit_verbose_message = false

verbose message flag.

flag for print log message.

Referenced by ccunit_log(), and ccunit_makeSuite().

bool _ccunit_verbose_message

flag for print log message.

Referenced by ccunit_log(), and ccunit_makeSuite().

SourceForge.jp hosts this site. Send comments to: CCUnit Developer