make bundle on mac os x and persist settings

This commit is contained in:
Konstantin Käfer
2014-01-16 13:53:10 +01:00
parent 8fd762b5f3
commit c01719bc04
12 changed files with 280 additions and 47 deletions

View 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