Adobe Source Libraries 1.49.0
A collection of C++ libraries.
Loading...
Searching...
No Matches
macro_utilities.hpp
Go to the documentation of this file.
1/*
2 Copyright 2012 Adobe Systems Incorporated
3 Distributed under the Boost Software License - Version 1.0 (see the accompanying file LICENSE
4 or a copy at https://stlab.github.io/adobe_source_libraries/licenses.html)
5*/
6
7/**************************************************************************************************/
8
9#ifndef ADOBE_MACRO_UTILITIES_HPP
10
12#define ADOBE_STRINGIZE(x) \
13 ADOBE_DETAIL_STRINGIZE2(x) // NOLINTNEXTLINE(cppcoreguidelines-macro-usage)
14#define ADOBE_DETAIL_STRINGIZE2(x) #x // NOLINT(cppcoreguidelines-macro-usage)
15
16
18#define ADOBE_LINE_STRING() ADOBE_STRINGIZE(__LINE__) // NOLINT(cppcoreguidelines-macro-usage)
19
24#define ADOBE_MESSAGE(message) \
25 __FILE__ ":" ADOBE_LINE_STRING() ": " message // NOLINT(cppcoreguidelines-macro-usage)
26
27/**************************************************************************************************/
28
29#endif
30
31/**************************************************************************************************/