From 137698914db2aa73c1bea1c9b6fd11694aca802f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Tue, 7 Feb 2017 18:35:27 -0800 Subject: [PATCH] Cleanup. --- include/bx/bx.inl | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 include/bx/bx.inl diff --git a/include/bx/bx.inl b/include/bx/bx.inl new file mode 100644 index 0000000..f8e9c63 --- /dev/null +++ b/include/bx/bx.inl @@ -0,0 +1,35 @@ +/* + * Copyright 2010-2017 Branimir Karadzic. All rights reserved. + * License: https://github.com/bkaradzic/bx#license-bsd-2-clause + */ + +#ifndef BX_H_HEADER_GUARD +# error "Must be included from bx/bx.h!" +#endif // BX_H_HEADER_GUARD + +namespace bx +{ + template + inline bool isEnabled() + { + return true; + } + + template<> + inline bool isEnabled() + { + return false; + } + + inline bool ignoreC4127(bool _x) + { + return _x; + } + + template + inline void xchg(Ty& _a, Ty& _b) + { + Ty tmp = _a; _a = _b; _b = tmp; + } + +} // namespace bx