SimiLie
Loading...
Searching...
No Matches
macros.hpp
1// SPDX-FileCopyrightText: 2024 Baptiste Legouix
2// SPDX-License-Identifier: MIT
3
4#pragma once
5
6#include <string_view>
7
8#if defined(SIMILIE_DEBUG_LOG_)
9#include <iostream>
10#endif
11
12namespace sil::misc::detail {
13
14inline void debug_log_launch([[maybe_unused]] std::string_view name)
15{
16#if defined(SIMILIE_DEBUG_LOG_)
17 std::cout << "Launch " << name << std::endl;
18#endif
19}
20
21} // namespace sil::misc::detail
22
23#define SIMILIE_DEBUG_LOG(name) ::sil::misc::detail::debug_log_launch(name)