mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-core.git
synced 2025-06-12 01:25:59 +00:00
21 lines
374 B
C++
21 lines
374 B
C++
#include <sta/debug/printing/printable_printf.hpp>
|
|
#include <sta/debug/assert.hpp>
|
|
|
|
#include <cstdio>
|
|
|
|
namespace sta
|
|
{
|
|
PrintablePrintf::PrintablePrintf()
|
|
{
|
|
|
|
}
|
|
|
|
void PrintablePrintf::print(const char * str, size_t length)
|
|
{
|
|
STA_ASSERT(str != nullptr);
|
|
STA_ASSERT(length > 0);
|
|
|
|
printf("%.*s", length, str);
|
|
}
|
|
} // namespace sta
|