aboutsummaryrefslogtreecommitdiff
path: root/include/inja/inja.hpp
blob: 86b8a0a9267c74f2aa2ae572dd7128d083335e6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright (c) 2020 Pantor. All rights reserved.

#ifndef INCLUDE_INJA_INJA_HPP_
#define INCLUDE_INJA_INJA_HPP_

#include <nlohmann/json.hpp>

#if (defined(__cpp_exceptions) || defined(__EXCEPTIONS) || defined(_CPPUNWIND)) && !defined(INJA_NOEXCEPTION)
    #define INJA_THROW(exception) throw exception
#else
    #include <cstdlib>
    #define INJA_THROW(exception) std::abort()
#endif

#include "environment.hpp"
#include "exceptions.hpp"
#include "parser.hpp"
#include "renderer.hpp"
#include "string_view.hpp"
#include "template.hpp"

#endif // INCLUDE_INJA_INJA_HPP_