mirror of
https://github.com/PashaBibko/LX.git
synced 2026-04-04 09:59:03 +00:00
9 lines
182 B
C++
9 lines
182 B
C++
#pragma once
|
|
|
|
namespace LX
|
|
{
|
|
template<typename T, typename... Args>
|
|
inline void ThrowIf(const bool condition, Args... args)
|
|
{ if (condition) [[unlikely]] { throw T(args...); }}
|
|
}
|