mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 03:28:20 +02:00
MemLogger
This commit is contained in:
parent
96f8b1426d
commit
119da8dada
14 changed files with 377 additions and 34 deletions
|
@ -660,7 +660,7 @@ void Beefy::ExactMinimalDoubleToStr(double d, char* str)
|
|||
|
||||
static char* StbspCallback(char *buf, void *user, int len)
|
||||
{
|
||||
((String*)user)->Append(buf, len);
|
||||
((StringImpl*)user)->Append(buf, len);
|
||||
return buf;
|
||||
}
|
||||
|
||||
|
@ -821,6 +821,12 @@ String Beefy::vformat(const char* fmt, va_list argPtr)
|
|||
BF_stbsp_vsprintfcb(StbspCallback, (void*)&str, buf, fmt, argPtr);
|
||||
return str;
|
||||
}
|
||||
|
||||
void Beefy::vformat(StringImpl& str, const char* fmt, va_list argPtr)
|
||||
{
|
||||
char buf[STB_SPRINTF_MIN];
|
||||
BF_stbsp_vsprintfcb(StbspCallback, (void*)&str, buf, fmt, argPtr);
|
||||
}
|
||||
#endif
|
||||
|
||||
String Beefy::StrFormat(const char* fmt ...)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue