![]() |
![]() |
![]() |
Alarmd Reference Manual | ![]() |
---|---|---|---|---|
#define ENTER_FUNC #define LEAVE_FUNC #define DEBUG (...)void enter_func (constchar *name);void leave_func (constchar *name);void dbg (constchar *func, constchar *format, ...);
#define ENTER_FUNC
Indicates that we're entering a function. Displays a message and increments the indentation in the debugging output.
#define LEAVE_FUNC
Indicates that we're leaving a function. Displays a message and decrements the indentation in the debugging output.
#define DEBUG(...)
Writes a debug message to stdout with the current indentation level.
... : |
void enter_func (constchar *name);
Should be called as ENTER_FUNC at start of a function.
name : |
Name of function being entered. |
void leave_func (constchar *name);
Should be called as LEAVE_FUNC at the end of a function.
name : |
Name of function being entered. |
void dbg (constchar *func, constchar *format, ...);
Writes a debug message; should be used through DEBUG macro.
func : |
Name of function writing debug info. |
format : |
Format for the message being printed (printf like). |
... : |
Values to fill into the format string. |