mirror of
https://github.com/PashaBibko/LX.git
synced 2026-08-07 05:21:00 +00:00
Inital commit
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
#pragma once
|
||||
|
||||
namespace LX
|
||||
{
|
||||
template<typename T, typename... Args>
|
||||
inline void ThrowIf(const bool condition, Args... args)
|
||||
{ if (condition) [[unlikely]] { throw T(args...); }}
|
||||
}
|
||||
Reference in New Issue
Block a user