mirror of
https://github.com/PashaBibko/LX.git
synced 2026-12-02 22:07:39 +00:00
Inital commit
This commit is contained in:
commit
753c72c653
10 files changed
+287
No files matched your search
@@ -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