#if defined(TETL_ENABLE_CXX_MODULES)
import etl;
#else
#endif
#include <stdio.h>
-> void
{
::printf(
"file: %s(%u:%u) `%s`: %s\n",
location.file_name(),
static_cast<unsigned>(location.line()),
static_cast<unsigned>(location.column()),
location.function_name(),
message.data()
);
}
template <typename T>
static auto fun(T x) -> void
{
log(x);
}
auto main(int , char const** ) -> int
{
log("Hello world!");
fun("Hello C++23!");
return 0;
}
The class template bitset represents a fixed-size sequence of Bits bits. Bitsets can be manipulated b...
Definition bitset.hpp:23
A class representing information about the source code, such as file names, line numbers,...
Definition source_location.hpp:20
static consteval auto current(uint_least32_t const line=TETL_BUILTIN_LINE(), uint_least32_t const column=TETL_BUILTIN_COLUMN(), char const *const file=TETL_BUILTIN_FILE(), char const *const function=TETL_BUILTIN_FUNCTION()) noexcept -> source_location
Definition source_location.hpp:21