1TICKIT_DEBUG_INIT(3)       Library Functions Manual       TICKIT_DEBUG_INIT(3)
2
3
4

NAME

6       tickit_debug_init - initialise the debugging system
7

SYNOPSIS

9       #include <tickit.h>
10
11       void tickit_debug_init(void);
12
13       bool tickit_debug_enabled;
14
15       Link with -ltickit.
16

DESCRIPTION

18       tickit_debug_init()  initialises  the  libtickit  debugging  system. It
19       reads the values of the environment variables and sets  up  the  output
20       filehandle,  if  enabled. It also has a side-effect on the value of the
21       tickit_debug_enabled global variable, setting it to the correct  value.
22       Applications that wish to read this variable to control their output of
23       debugging messages may wish to call this function on startup, to ensure
24       it takes the correct value.
25
26       tickit_debug_init()  is  guarded  internally so that it is safe to call
27       multiple times; there is no downside to opportunistically  invoking  it
28       on  startup anyway, even if some other part of the application may also
29       have done so.
30

RETURN VALUE

32       This function returns no value.
33

SEE ALSO

35       tickit_debug_logf(3), tickit_debug(7), tickit(7)
36
37
38
39                                                          TICKIT_DEBUG_INIT(3)
Impressum