ddnet/src/base/tl/base.hpp

16 lines
179 B
C++
Raw Normal View History

2009-06-15 06:45:44 +00:00
#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;
}