mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-core.git
synced 2025-12-17 00:58:02 +00:00
Big assert / debug clean up
This commit is contained in:
20
src/debug/printing/printable_printf.cpp
Normal file
20
src/debug/printing/printable_printf.cpp
Normal file
@@ -0,0 +1,20 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user