mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-21 18:14:19 +00:00
22 lines
429 B
C++
22 lines
429 B
C++
/* (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 TL_FILE_BASE_HPP
|
|
#define TL_FILE_BASE_HPP
|
|
|
|
#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
|