UPnPsdk 0.1
Universal Plug and Play +, Software Development Kit
 
Loading...
Searching...
No Matches
ixmldebug.hpp
Go to the documentation of this file.
1#ifndef UPNPLIB_IXMLDEBUG_HPP
2#define UPNPLIB_IXMLDEBUG_HPP
3// Copyright (C) 2022 GPL 3 and higher by Ingo Höft, <Ingo@Hoeft-online.de>
4// Redistribution only with this Copyright remark. Last modified: 2025-05-29
5// Taken from authors who haven't made a note.
6// Last compare with pupnp original source file on 2025-05-23, ver 1.14.20
7
8#include <ixml/ixml.hpp>
9
20#ifdef DEBUG
21void IxmlPrintf(
23 const char* DbgFileName,
26 int DbgLineNo,
28 const char* FunctionName,
30 const char* FmtStr,
33 ...)
34#if (__GNUC__ >= 3)
35 /* This enables printf like format checking by the compiler */
36 __attribute__((format(__printf__, 4, 5)))
37#endif
38 ;
39#else /* DEBUG */
40static inline void IxmlPrintf([[maybe_unused]] const char* FmtStr, ...) {}
41#endif /* DEBUG */
42
46#ifdef DEBUG
47void printNodes(
49 IXML_Node* tmpRoot,
51 int depth);
52#else
53static inline void printNodes([[maybe_unused]] IXML_Node* tmpRoot,
54 [[maybe_unused]] int depth) {}
55#endif
56
57#endif /* UPNPLIB_IXMLDEBUG_HPP */
Data structure common to all types of nodes.
Definition ixml.hpp:132
void IxmlPrintf(const char *DbgFileName, int DbgLineNo, const char *FunctionName, const char *FmtStr,...)
Prints the debug statement either on the standard output or log file along with the information from ...
Definition ixmldebug.cpp:13
void printNodes(IXML_Node *tmpRoot, int depth)
Print the node names and values of a XML tree.
Definition ixmldebug.cpp:31