2010-11-20 10:37:14 +00:00
|
|
|
/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
|
|
|
|
/* If you are missing that file, acquire a complete release at teeworlds.com. */
|
2011-04-13 18:22:10 +00:00
|
|
|
#ifndef BASE_TL_BASE_H
|
|
|
|
#define BASE_TL_BASE_H
|
2009-06-15 06:45:44 +00:00
|
|
|
|
|
|
|
#include <base/system.h>
|
|
|
|
|
2012-07-22 08:44:50 +00:00
|
|
|
inline void tl_assert(bool statement)
|
2009-06-15 06:45:44 +00:00
|
|
|
{
|
|
|
|
dbg_assert(statement, "assert!");
|
|
|
|
}
|
|
|
|
|
|
|
|
template<class T>
|
|
|
|
inline void swap(T &a, T &b)
|
|
|
|
{
|
|
|
|
T c = b;
|
|
|
|
b = a;
|
|
|
|
a = c;
|
|
|
|
}
|
2009-06-15 10:12:16 +00:00
|
|
|
|
|
|
|
#endif
|