cppx-core
cppx-core
failure-handling
macro-dbginfo.hpp
Go to the documentation of this file.
1
// Source encoding: UTF-8 with BOM (π is a lowercase Greek "pi").
2
// Intentionally no `#pragma once`.
3
//
4
// Removes calls to `dbginfo` when NDEBUG is defined. The `dbginfo` function must be
5
// supplied by client code.
6
7
#include <
cppx-core/collections/String_value_view_.hpp
>
// cppx::String_value_view
8
9
#include <string_view>
10
11
#ifndef CPPX_NO_DOLLARS_PLEASE
12
# undef $dbginfo
13
# define $dbginfo CPPX_DBGINFO
14
#endif
15
16
#undef CPPX_DBGINFO
17
#ifdef NDEBUG
18
# define CPPX_DBGINFO( s ) []{}()
19
#else
20
# define CPPX_DBGINFO( ... ) ::cppx::dbginfo( __VA_ARGS__ )
21
#endif
22
23
namespace
cppx
24
{
25
extern
void
dbginfo
(
const
String_value_view
& );
26
}
cppx::dbginfo
void dbginfo(const String_value_view &)
String_value_view_.hpp
cppx
Definition:
dynamic-size-checking.hpp:12
cppx::String_value_view
String_value_view_< char > String_value_view
Definition:
String_value_view_.hpp:56
Generated by
1.8.15