MCPcopy Create free account
hub / github.com/codr7/hacktical-c / hc_slog

Function hc_slog

slog/slog.c:13–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11__thread struct hc_slog *_hc_slog = NULL;
12
13struct hc_slog *hc_slog() {
14 if (_hc_slog != NULL) {
15 return _hc_slog;
16 }
17
18 static __thread bool init = true;
19 static __thread struct hc_slog_stream s;
20
21 if (init) {
22 hc_slog_stream_init(&s, hc_stdout());
23 init = false;
24 }
25
26 return &s.slog;
27}
28
29static void field_deinit(struct hc_slog_field *f) {
30 free(f->name);

Callers 1

hc_slog_context_initFunction · 0.70

Calls 1

hc_stdoutFunction · 0.85

Tested by

no test coverage detected