mirror of https://github.com/PrimeDecomp/prime.git
parent
4f9bb0ae1c
commit
422a460d09
|
@ -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],
|
||||
|
|
|
@ -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;
|
||||
}
|
Loading…
Reference in New Issue