diff options
Diffstat (limited to 'src/support/utilities.h')
-rw-r--r-- | src/support/utilities.h | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/src/support/utilities.h b/src/support/utilities.h index 07a163ef9..71d8ce2e0 100644 --- a/src/support/utilities.h +++ b/src/support/utilities.h @@ -22,8 +22,8 @@ #include <cassert> #include <cstdint> #include <cstring> -#include <memory> #include <iostream> +#include <memory> #include <type_traits> #include "support/bits.h" @@ -53,19 +53,15 @@ inline size_t alignAddr(size_t address, size_t alignment) { } template<typename T, typename... Args> -std::unique_ptr<T> make_unique(Args&&... args) -{ - return std::unique_ptr<T>(new T(std::forward<Args>(args)...)); +std::unique_ptr<T> make_unique(Args&&... args) { + return std::unique_ptr<T>(new T(std::forward<Args>(args)...)); } // For fatal errors which could arise from input (i.e. not assertion failures) class Fatal { - public: - Fatal() { - std::cerr << "Fatal: "; - } - template<typename T> - Fatal &operator<<(T arg) { +public: + Fatal() { std::cerr << "Fatal: "; } + template<typename T> Fatal& operator<<(T arg) { std::cerr << arg; return *this; } @@ -78,7 +74,6 @@ class Fatal { } }; +} // namespace wasm -} // namespace wasm - -#endif // wasm_support_utilities_h +#endif // wasm_support_utilities_h |