ddnet/src/base/tl/base.h

22 lines
425 B
C
Raw Normal View History

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. */
#ifndef BASE_TL_BASE_H
#define BASE_TL_BASE_H
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;
}
#endif