Debian Codegraph @

src/common/debug_priv.h

raw symbols SCIP
1 /**
2 * @file debug_priv.h
3 * @brief oscap debug helpers private header
4 */
5 /*
6 * Copyright 2011 Red Hat Inc., Durham, North Carolina.
7 * All Rights Reserved.
8 *
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public
11 * License as published by the Free Software Foundation; either
12 * version 2.1 of the License, or (at your option) any later version.
13 *
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
18 *
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this library; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22 *
23 * Authors:
24 * Daniel Kopecek <[email protected]>
25 * Peter Vrabec <[email protected]>
26 */
27
28 #pragma once
29 #ifndef OSCAP_DEBUG_PRIV_H_
30 #define OSCAP_DEBUG_PRIV_H_cxx . . $ `src/common/debug_priv.h:30:9`!
31
32 #include <assert.h>
33 #include <stdlib.h>
34 #include <stddef.h>
35 #include <stdarg.h>
36 #include "util.h"cxx . . $ `<file>/src/common/util.h`/
37 #include "public/oscap_debug.h"cxx . . $ `<file>/src/common/public/oscap_debug.h`/
38
39
40 #define OSCAP_DEBUGOBJ_SEXPcxx . . $ `src/common/debug_priv.h:40:9`! 1
41
42 #ifndef _A
43 #define _Acxx . . $ `src/common/debug_priv.h:43:9`!(x) assertcxx . . $ `/usr/include/assert.h:50:10`!(x)
44 #endif
45
46
47 # define __dlprintf_wrappercxx . . $ `src/common/debug_priv.h:47:10`!(l, ...) __oscap_dlprintf (l, __FILE__, __PRETTY_FUNCTION__, __LINE__, 0, __VA_ARGS__)
48
49 /**
50 * Convenience macro for calling __oscap_dlprintf. Only the fmt & it's arguments
51 * need to be specified. The __FILE__, __PRETTY_FUNCTION__ and __LINE__ macros
52 * are used for the first three arguments.
53 */
54 # define oscap_dlprintfcxx . . $ `src/common/debug_priv.h:54:10`!(l, ...) __dlprintf_wrappercxx . . $ `src/common/debug_priv.h:47:10`! (l, __VA_ARGS__)
55
56 void __oscap_debuglog_objectcxx . . $ __oscap_debuglog_object(7728107c3ca98b23). (const char *file, const char *fn, size_t line, int objtype, void *obj);
57
58 # define dOcxx . . $ `src/common/debug_priv.h:58:10`!(type, obj) __oscap_debuglog_object(__FILE__, __PRETTY_FUNCTION__, __LINE__, type, obj)
59
60
61 #define dIcxx . . $ `src/common/debug_priv.h:61:9`!(...) oscap_dlprintfcxx . . $ `src/common/debug_priv.h:54:10`!(DBG_I, __VA_ARGS__)
62 #define dWcxx . . $ `src/common/debug_priv.h:62:9`!(...) oscap_dlprintfcxx . . $ `src/common/debug_priv.h:54:10`!(DBG_W, __VA_ARGS__)
63 #define dEcxx . . $ `src/common/debug_priv.h:63:9`!(...) oscap_dlprintfcxx . . $ `src/common/debug_priv.h:54:10`!(DBG_E, __VA_ARGS__)
64 #define dDcxx . . $ `src/common/debug_priv.h:64:9`!(...) oscap_dlprintfcxx . . $ `src/common/debug_priv.h:54:10`!(DBG_D, __VA_ARGS__)
65
66 #define dIndentcxx . . $ `src/common/debug_priv.h:66:9`!(indent_change) __oscap_dlprintf(DBG_I, __FILE__, __PRETTY_FUNCTION__, __LINE__, indent_change, NULL)
67
68
69 #endif