22#ifndef RIFT_CONFIG_HPP
33#define RIFT_CONFIG_HPP
44
5- #include " value.hpp"
65#include " util.hpp"
6+ #include " value.hpp"
77
8+ #include < functional>
89#include < span>
910#include < string>
10- #include < functional>
11- #include < unordered_map>
1211#include < tuple>
12+ #include < unordered_map>
1313
1414#include < fmt/format.h>
1515
1616namespace rift {
17-
1817 // / @brief Can be int64_t, double, bool, std::string, Array, or Object.
19- template <typename T>
18+ template <typename T>
2019 concept ValueConvertible = std::same_as<T, int64_t >
21- || std::same_as<T, double >
22- || std::same_as<T, bool >
23- || std::same_as<T, std::string>
24- || std::same_as<T, Array>
25- || std::same_as<T, Object>;
20+ || std::same_as<T, double >
21+ || std::same_as<T, bool >
22+ || std::same_as<T, std::string>
23+ || std::same_as<T, Array>
24+ || std::same_as<T, Object>;
2625
2726 using RuntimeFuncResult = geode::Result<Value>;
2827 using RuntimeFunction = std::function<RuntimeFuncResult(std::span<Value>)>;
@@ -31,6 +30,7 @@ namespace rift {
3130 // / @brief Global configuration for the Rift library.
3231 class Config {
3332 Config ();
33+
3434 public:
3535 Config (Config const &) = delete ;
3636 Config (Config&&) = delete ;
@@ -92,8 +92,8 @@ namespace rift {
9292 std::tuple<std::remove_cvref_t <Args>...> argsTuple;
9393 bool success = true ;
9494 ((success && args[I].template is <std::remove_cvref_t <Args>>()
95- ? void (std::get<I>(argsTuple) = args[I].template to <std::remove_cvref_t <Args>>())
96- : void (success = false )), ...);
95+ ? void (std::get<I>(argsTuple) = args[I].template to <std::remove_cvref_t <Args>>())
96+ : void (success = false )), ...);
9797
9898 if (!success) {
9999 return geode::Err (" Argument type mismatch" );
@@ -144,7 +144,6 @@ namespace rift {
144144 RuntimeFunctions m_functions;
145145 size_t m_maxLoopIterations = 10000 ;
146146 };
147-
148147}
149148
150- #endif // RIFT_CONFIG_HPP
149+ #endif // RIFT_CONFIG_HPP
0 commit comments