DL(3)

DL3

Generate logging messages in c and c++ using a debugger

Usage

#include <DL.h>

DL(format,...)

DLG(guard,format,...)

DLH(handler,format,...)

DLP(param,format,...)

DLGH(guard,handler,format,...)

DLHP(handler,param,format,...)

DLGHP(guard,handler,param,format,...)

Overview

The DL macro is used to print logging or debugging messages using a debugger. The nana(1) command generates a set of debugger commands which are then sourced into gdb(1) to implement the logging. If you don't run the executable under gdb(1) then no tracing will occur. The arguments are:

format,... - a printf(3) style argument list containing the message

guard - print only if the guard is true.

handler - the code that does the printing. Default: fprintf

param - a parameter to be passed off to the handler. Default: stdout

See nana.info for details on configuring the behaviour.

Releases

8 releases since Debian 2.1 (Slink); the text changed 2 times.

  1. 2.1
  2. 2.2–3.1
  3. 4.0–7

Author

Phil Maker <[email protected]>

From nana 2.5-12+deb7u1 in Debian 7 (Wheezy). Parsed by carta from the page's man source.