14 #define ALPAKA_DEBUG_DISABLED 0
16 #define ALPAKA_DEBUG_MINIMAL 1
18 #define ALPAKA_DEBUG_FULL 2
22 # define ALPAKA_DEBUG ALPAKA_DEBUG_DISABLED
33 std::cout <<
"[+] " << m_sScope << std::endl;
43 std::cout <<
"[-] " << m_sScope << std::endl;
47 std::string
const m_sScope;
52 #if ALPAKA_DEBUG >= ALPAKA_DEBUG_MINIMAL
53 # define ALPAKA_DEBUG_MINIMAL_LOG_SCOPE ::alpaka::core::detail::ScopeLogStdOut const scopeLogStdOut(__func__)
55 # define ALPAKA_DEBUG_MINIMAL_LOG_SCOPE
59 #if ALPAKA_DEBUG >= ALPAKA_DEBUG_FULL
60 # define ALPAKA_DEBUG_FULL_LOG_SCOPE ::alpaka::core::detail::ScopeLogStdOut const scopeLogStdOut(__func__)
62 # define ALPAKA_DEBUG_FULL_LOG_SCOPE
66 #if ALPAKA_DEBUG >= ALPAKA_DEBUG_MINIMAL
67 # if BOOST_COMP_GNUC || BOOST_COMP_CLANG
68 # define ALPAKA_DEBUG_BREAK ::__builtin_trap()
69 # elif BOOST_COMP_MSVC
70 # define ALPAKA_DEBUG_BREAK ::__debugbreak()
72 # define ALPAKA_DEBUG_BREAK
76 # define ALPAKA_DEBUG_BREAK
ScopeLogStdOut(std::string sScope)
ScopeLogStdOut(ScopeLogStdOut &&)=delete
ScopeLogStdOut(ScopeLogStdOut const &)=delete
auto operator=(ScopeLogStdOut &&) -> ScopeLogStdOut &=delete
auto operator=(ScopeLogStdOut const &) -> ScopeLogStdOut &=delete
Defines implementation details that should not be used directly by the user.