description, also make it 64 bit

This commit is contained in:
Drath
2025-11-02 12:53:48 +01:00
parent 80dda33198
commit 352166cbe8

View File

@@ -7,7 +7,8 @@
#define FILL_CHAR ' '
#define fastReadNum(path, val) readFile2(path, buf, sizeof(buf)); val = strtol(buf, NULL, 10)
// wrapper around readFile2 func so we can avoid readFile and reuse one buffer, this should be faster and less bug prone?
#define fastReadNum(path, val) readFile2(path, buf, sizeof(buf)); val = strtoll(buf, NULL, 10)
// pretty prints num with given decs, 0 by default. its basically a macro so we inline it
inline std::string pNum(auto num, uint8_t decs = 0) { return std::format("{:.{}f}", num, decs); }