mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-08-09 10:19:06 +00:00
Match and link CBasics.cpp
Former-commit-id: 9e26e290353528874fbaf4b5ca2261997b3aa0a0
This commit is contained in:
parent
4f9bb0ae1c
commit
422a460d09
@ -466,7 +466,7 @@ LIBS = [
|
|||||||
"cflags": "$cflags_retro",
|
"cflags": "$cflags_retro",
|
||||||
"host": True,
|
"host": True,
|
||||||
"objects": [
|
"objects": [
|
||||||
"Kyoto/Basics/CBasics",
|
["Kyoto/Basics/CBasics", True],
|
||||||
["Kyoto/Basics/CStopwatch", True],
|
["Kyoto/Basics/CStopwatch", True],
|
||||||
["Kyoto/Basics/CBasicsDolphin", True],
|
["Kyoto/Basics/CBasicsDolphin", True],
|
||||||
["Kyoto/Alloc/CCallStackDolphin", True],
|
["Kyoto/Alloc/CCallStackDolphin", True],
|
||||||
|
16
src/Kyoto/Basics/CBasics.cpp
Normal file
16
src/Kyoto/Basics/CBasics.cpp
Normal 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;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user