AuroraRuntime/Include/Aurora/Debug/SysPanic.hpp

17 lines
422 B
C++
Raw Normal View History

2021-06-27 21:25:29 +00:00
/***
Copyright (C) 2021 J Reece Wilson (a/k/a "Reece"). All rights reserved.
File: SysPanic.hpp
Date: 2021-6-10
Author: Reece
***/
#pragma once
2021-09-06 10:58:08 +00:00
#if defined(_AUHAS_FMT)
2021-06-27 21:25:29 +00:00
template<typename ... T>
static inline void __declspec(noreturn) SysPanic(T... args)
{
Aurora::Console::Logging::WriteLinef(Aurora::Console::EAnsiColor::eBoldRed, "Fatal", AuForward<T>(args)...);
2021-06-27 21:25:29 +00:00
Aurora::Debug::Panic();
2021-09-06 10:58:08 +00:00
}
#endif