update headless testing to be configurable

This commit is contained in:
Konstantin Käfer
2014-07-08 14:38:49 -07:00
parent 4c75c696b3
commit af6091db5a
18 changed files with 125 additions and 39 deletions

View File

@@ -0,0 +1,20 @@
#ifndef LLMR_UTIL_ERROR
#define LLMR_UTIL_ERROR
#include <stdexcept>
#include <string>
namespace llmr {
namespace error {
struct style_parse : std::exception {
inline style_parse(size_t offset, const char *msg) : offset(offset), msg(msg) {}
inline const char* what() const noexcept { return msg.c_str(); }
const size_t offset;
const std::string msg;
};
}
}
#endif

View File

@@ -7,6 +7,7 @@ namespace llmr {
namespace util {
void write_file(const std::string &filename, const std::string &data);
std::string read_file(const std::string &filename);
}
}