mirror of
https://github.com/boostorg/assert.git
synced 2026-01-25 08:32:25 +01:00
22 lines
719 B
Plaintext
22 lines
719 B
Plaintext
////
|
|
Copyright 2002, 2017 Peter Dimov
|
|
|
|
Distributed under the Boost Software License, Version 1.0.
|
|
|
|
See accompanying file LICENSE_1_0.txt or copy at
|
|
http://www.boost.org/LICENSE_1_0.txt
|
|
////
|
|
|
|
## BOOST_CURRENT_FUNCTION
|
|
|
|
The header `boost/current_function.hpp` defines a single macro, `BOOST_CURRENT_FUNCTION`,
|
|
similar to the C99 predefined identifier `__func__`.
|
|
|
|
`BOOST_CURRENT_FUNCTION` expands to a string literal containing
|
|
the (fully qualified, if possible) name of the enclosing function. If there is
|
|
no enclosing function, the behavior is unspecified.
|
|
|
|
Some compilers do not provide a way to obtain the name of the current enclosing
|
|
function. On such compilers, `BOOST_CURRENT_FUNCTION` expands to
|
|
`"(unknown)"`.
|