All checks were successful
continuous-integration/drone/push Build is passing
Why can printing to the serial port or format onto a string fail? Even if cstyle_format returns Result<usize>, we shouldn't always follow suit.
14 lines
315 B
C++
14 lines
315 B
C++
#pragma once
|
|
#include <luna/Attributes.h>
|
|
#include <luna/Types.h>
|
|
|
|
template <typename T> class Result;
|
|
|
|
namespace Serial
|
|
{
|
|
void putchar(u8 c);
|
|
void write(const char* str, usize size);
|
|
void print(const char* str);
|
|
void println(const char* str);
|
|
usize printf(const char* str, ...) _format(1, 2);
|
|
} |