mirror of https://github.com/PrimeDecomp/prime.git
Match and link CBasics.cpp
This commit is contained in:
parent
6880c19ae9
commit
9e26e29035
|
@ -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