Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
RektInator committed Nov 29, 2020
1 parent bfec6f0 commit adf5c7b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ZoneUtils/ZoneUtils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// ========================================================
#pragma once

#include <Windows.h>

#include <initializer_list>
#include <functional>
#include <filesystem>
Expand Down Expand Up @@ -165,7 +167,7 @@ namespace ZoneTool
printf("[ ERROR ][ " __FUNCTION__ " ]: " __FMT__ "\n", __VA_ARGS__)

#define ZONETOOL_FATAL(__FMT__,...) \
printf("[ FATAL ][ " __FUNCTION__ " ]: " __FMT__ "\n", __VA_ARGS__) \
printf("[ FATAL ][ " __FUNCTION__ " ]: " __FMT__ "\n", __VA_ARGS__); \
MessageBoxA(nullptr, &va("Oops! An unexpected error occured. Error was: " __FMT__ "\n\nZoneTool must be restarted to resolve the error. Last error code reported by windows: 0x%08X (%u)", __VA_ARGS__, GetLastError(), GetLastError())[0], nullptr, 0); \
std::exit(0)

Expand Down

0 comments on commit adf5c7b

Please sign in to comment.