7 #include <utility/stringutils.h>
36 bool check(
bool successCondition, T&& errorMessage)
38 if (!successCondition)
39 mErrorList.emplace_back(std::forward<T>(errorMessage));
40 return successCondition;
55 template <
typename... Args>
56 bool check(
bool successCondition,
const char* format, Args&&... args)
58 return check(successCondition,
stringFormat(format, std::forward<Args>(args)...));
73 void fail(T&& errorMessage)
75 mErrorList.emplace_back(std::forward<T>(errorMessage));
89 template <
typename... Args>
90 void fail(
const char* format, Args&&... args)
107 std::vector<std::string> mErrorList;