split dev files and amalgamate into a single header

This commit is contained in:
pantor
2018-12-14 18:03:45 +01:00
parent e44c2372e1
commit 595076ebec
20 changed files with 1707 additions and 29 deletions

18
include/error.hpp Normal file
View File

@@ -0,0 +1,18 @@
#ifndef PANTOR_INJA_ERROR_HPP
#define PANTOR_INJA_ERROR_HPP
#include <string>
namespace inja {
/*!
@brief throw an error with a given message
*/
inline void inja_throw(const std::string& type, const std::string& message) {
throw std::runtime_error("[inja.exception." + type + "] " + message);
}
}
#endif // PANTOR_INJA_ERROR_HPP