mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-13 11:38:19 +00:00
16 lines
179 B
C++
16 lines
179 B
C++
|
|
||
|
#include <base/system.h>
|
||
|
|
||
|
inline void assert(bool statement)
|
||
|
{
|
||
|
dbg_assert(statement, "assert!");
|
||
|
}
|
||
|
|
||
|
template<class T>
|
||
|
inline void swap(T &a, T &b)
|
||
|
{
|
||
|
T c = b;
|
||
|
b = a;
|
||
|
a = c;
|
||
|
}
|