resonance 1.0.1
Loading...
Searching...
No Matches
formatstring.h
Go to the documentation of this file.
1#pragma once
2
3#ifdef ENABLE_PATCHES
4#include <fmt/printf.h>
5#endif
6
7namespace Rnd {
8
9#ifdef ENABLE_PATCHES
19const char *FormatString(const char *pszFormat, fmt::printf_args args);
20
28template <typename... Args>
29const char *MakeString(const char *pszFormat, const Args &...args) {
30 return FormatString(pszFormat, fmt::make_printf_args(args...));
31}
32#else
46const char *MakeString(const char *pszFormat, ...);
47#endif
48
49} // namespace Rnd
50
63const char *GetDirectoryFromPath(const char *pszPath);
const char * GetDirectoryFromPath(const char *pszPath)
Copy a path into one shared buffer and cut it at its last separator.
The rendering engine.
Definition animhelper.h:3
const char * MakeString(const char *pszFormat,...)
Format text into one shared buffer and return it.