From 7af4c5b5c561362cb1135ab504095ae667a9270a Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Fri, 27 Jun 2014 19:16:45 -0700 Subject: This is more reliable --- src/generic/enum.hpp | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) (limited to 'src/generic/enum.hpp') diff --git a/src/generic/enum.hpp b/src/generic/enum.hpp index 2fe748d..81c9b12 100644 --- a/src/generic/enum.hpp +++ b/src/generic/enum.hpp @@ -1,5 +1,4 @@ -#ifndef TMWA_GENERIC_ENUM_HPP -#define TMWA_GENERIC_ENUM_HPP +#pragma once // enum.hpp - Safe building blocks for enumerated types. // // Copyright © 2012-2014 Ben Longbons @@ -19,17 +18,17 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -# include "fwd.hpp" +#include "fwd.hpp" -# include -# include +#include +#include -# include -# include +#include +#include -# include "../compat/iter.hpp" +#include "../compat/iter.hpp" -# include "array.hpp" +#include "array.hpp" namespace tmwa @@ -102,7 +101,7 @@ struct remove_enum // This really should just go in a namespace // that's how I use it anyway ... -# define ENUM_BITWISE_OPERATORS(E) \ +#define ENUM_BITWISE_OPERATORS(E) \ inline \ E operator & (E l, E r) \ { \ @@ -160,5 +159,3 @@ IteratorPair>> erange(E b, E e) return {b, e}; } } // namespace tmwa - -#endif // TMWA_GENERIC_ENUM_HPP -- cgit v1.2.3-70-g09d2