make bundle on mac os x and persist settings
This commit is contained in:
19
include/llmr/util/string.hpp
Normal file
19
include/llmr/util/string.hpp
Normal file
@@ -0,0 +1,19 @@
|
||||
#ifndef LLMR_UTIL_STRING
|
||||
#define LLMR_UTIL_STRING
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace llmr {
|
||||
namespace util {
|
||||
|
||||
template<typename... Args>
|
||||
inline std::string sprintf(const char *msg, Args... args) {
|
||||
char res[1024];
|
||||
int len = snprintf(res, sizeof(res), msg, args...);
|
||||
return std::string(res, len);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user