From f0a2e655e3b29df95ccb895159e38c7a42b437a6 Mon Sep 17 00:00:00 2001 From: Paolo Cignoni Date: Fri, 28 Jul 2017 00:37:44 +0200 Subject: [PATCH] Added a missing inline to avoid linking errors... --- wrap/callback.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wrap/callback.h b/wrap/callback.h index 3e60c76b..61c3959f 100644 --- a/wrap/callback.h +++ b/wrap/callback.h @@ -52,12 +52,13 @@ inline bool COutCallBackPos(const int , const char *str ) { inline bool CErrCallBackPos(const int , const char *str ) { std::cerr << str; return true; } + /*! \brief Helper function that formats a string a la printf and returns a simple char* * * Quite useful for formatting the above callback... */ -char* StrFormat(const std::string fmt_str, ...) { +inline char* StrFormat(const std::string fmt_str, ...) { int final_n, n = ((int)fmt_str.size()) * 2; /* Reserve two times as much as the length of the fmt_str */ std::unique_ptr formatted; va_list ap;