Derive-C
Loading...
Searching...
No Matches
null.h File Reference

Go to the source code of this file.

Macros

#define DC_LOGGER   dc_log_null

Functions

 DC_ZERO_SIZED (dc_log_null)
 DC_ZERO_SIZED (dc_log_null_global_config)
static DC_PUBLIC dc_log_null dc_log_null_new_global (dc_log_null_global_config config, dc_log_id id)
static DC_PUBLIC dc_log_null dc_log_null_from_parent (dc_log_null *parent, dc_log_id id)
static DC_PUBLIC void dc_log_null_log (dc_log_null *self, dc_log_location location, dc_log_level level, const char *const message,...)
static DC_PUBLIC void dc_log_null_delete (dc_log_null *self)
static DC_PUBLIC void dc_log_null_debug (dc_log_null const *self, dc_debug_fmt fmt, FILE *stream)
 DC_TRAIT_LOGGER (dc_log_null)

Macro Definition Documentation

◆ DC_LOGGER

#define DC_LOGGER   dc_log_null

Definition at line 43 of file null.h.

Function Documentation

◆ dc_log_null_debug()

DC_PUBLIC void dc_log_null_debug ( dc_log_null const * self,
dc_debug_fmt fmt,
FILE * stream )
static

Definition at line 34 of file null.h.

34 {
35 (void)self;
36 (void)fmt;
37 fprintf(stream, "dc_log_null { }");
38}
static DC_PUBLIC FILE * stream(SELF *self)
Definition template.h:108

◆ dc_log_null_delete()

DC_PUBLIC void dc_log_null_delete ( dc_log_null * self)
static

Definition at line 32 of file null.h.

32{ (void)self; }

◆ dc_log_null_from_parent()

DC_PUBLIC dc_log_null dc_log_null_from_parent ( dc_log_null * parent,
dc_log_id id )
static

Definition at line 17 of file null.h.

17 {
18 (void)parent;
19 (void)id;
20 dc_log_null self = {};
21 return self;
22}

◆ dc_log_null_log()

DC_PUBLIC void dc_log_null_log ( dc_log_null * self,
dc_log_location location,
dc_log_level level,
const char *const message,
... )
static

Definition at line 24 of file null.h.

25 {
26 (void)self;
27 (void)location;
28 (void)level;
29 (void)message;
30}

◆ dc_log_null_new_global()

DC_PUBLIC dc_log_null dc_log_null_new_global ( dc_log_null_global_config config,
dc_log_id id )
static

Definition at line 9 of file null.h.

10 {
11 (void)config;
12 (void)id;
13 dc_log_null self = {};
14 return self;
15}

◆ DC_TRAIT_LOGGER()

DC_TRAIT_LOGGER ( dc_log_null )

◆ DC_ZERO_SIZED() [1/2]

DC_ZERO_SIZED ( dc_log_null )

◆ DC_ZERO_SIZED() [2/2]

DC_ZERO_SIZED ( dc_log_null_global_config )