From 422a460d090f80b7717f66183e3b06220ae3faee Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Mon, 5 Dec 2022 20:25:17 -0800 Subject: [PATCH] Match and link CBasics.cpp Former-commit-id: 9e26e290353528874fbaf4b5ca2261997b3aa0a0 --- configure.py | 2 +- src/Kyoto/Basics/CBasics.cpp | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 src/Kyoto/Basics/CBasics.cpp diff --git a/configure.py b/configure.py index 8a6df538..1bf5e2f8 100755 --- a/configure.py +++ b/configure.py @@ -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], diff --git a/src/Kyoto/Basics/CBasics.cpp b/src/Kyoto/Basics/CBasics.cpp new file mode 100644 index 00000000..9eaa8e7a --- /dev/null +++ b/src/Kyoto/Basics/CBasics.cpp @@ -0,0 +1,16 @@ +#include "Kyoto/Basics/CBasics.hpp" + +#include +#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; +}