Match and link CBasics.cpp

Former-commit-id: 9e26e29035
This commit is contained in:
Phillip Stephens 2022-12-05 20:25:17 -08:00
parent 4f9bb0ae1c
commit 422a460d09
2 changed files with 17 additions and 1 deletions

View File

@ -466,7 +466,7 @@ LIBS = [
"cflags": "$cflags_retro",
"host": True,
"objects": [
"Kyoto/Basics/CBasics",
["Kyoto/Basics/CBasics", True],
["Kyoto/Basics/CStopwatch", True],
["Kyoto/Basics/CBasicsDolphin", True],
["Kyoto/Alloc/CCallStackDolphin", True],

View File

@ -0,0 +1,16 @@
#include "Kyoto/Basics/CBasics.hpp"
#include <stdio.h>
#include "stdarg.h"
char* CBasics::Stringize(const char* fmt, ...) {
static char stringize_Buffer[512];
va_list args;
va_start(args, fmt);
vsprintf(stringize_Buffer, fmt, args);
va_end(args);
return stringize_Buffer;
}