Debug helper.
#include <srl_debug.hpp>
Static Public Member Functions | |
template<typename ... Args> | |
static void | AssertScreen (const char *message, const char *file, const char *function, Args...args) |
Breaks any further execution and shows assert screen. | |
static void | Print (uint8_t x, uint8_t y, const char *text) |
Print text on screen at specific location. | |
template<typename ... Args> | |
static void | Print (uint8_t x, uint8_t y, const char *text, Args...args) |
Print text on screen at specific location. | |
static void | PrintClearLine (const uint8_t line) |
Clear screen line. | |
static void | PrintClearScreen () |
Clear whole screen from text. | |
static void | PrintColorRestore () |
Restore previous print color. | |
static void | PrintColorSet (uint8_t color) |
Color of the cursor. | |
static uint8_t | PrintWithWrap (uint8_t x, uint8_t y, const uint8_t fromLeft, const uint8_t fromRight, const char *text) |
Print text on screen at specific location. | |
template<typename ... Args> | |
static uint8_t | PrintWithWrap (uint8_t x, uint8_t y, const uint8_t fromLeft, const uint8_t fromRight, const char *text, Args...args) |
Print text on screen at specific location. | |
Static Public Attributes | |
static constexpr bool | Enabled = false |
Debug functions are disabled. | |
|
inlinestatic |
Breaks any further execution and shows assert screen.
message | Custom message to show |
file | File the assert happened in |
function | Function that threw the exception |
args | Text arguments |
|
inlinestatic |
Print text on screen at specific location.
x | Offset from left of the screen |
y | Offset from top of the screen |
text | Text to print |
|
inlinestatic |
Print text on screen at specific location.
x | Offset from left of the screen |
y | Offset from top of the screen |
text | Text to print |
args | Text arguments |
|
inlinestatic |
Clear screen line.
line | Line number |
|
inlinestatic |
Color of the cursor.
color | Cursor color index |
|
inlinestatic |
Print text on screen at specific location.
x | Offset from left of the screen |
y | Offset from top of the screen |
fromLeft | Where to start next line from on screen |
fromRight | Where to start wrapping to next line |
text | Text to print |
|
inlinestatic |
Print text on screen at specific location.
x | Offset from left of the screen |
y | Offset from top of the screen |
fromLeft | Where to start next line from on screen |
fromRight | Where to start wrapping to next line |
text | Text to print |
args | Text arguments |