use #pragma once
This commit is contained in:
@@ -19,8 +19,7 @@
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#if !defined( INCLUDED_GENERIC_ARRAYRANGE_H )
|
||||
#define INCLUDED_GENERIC_ARRAYRANGE_H
|
||||
#pragma once
|
||||
|
||||
/// \file
|
||||
/// \brief Macros for automatically converting a compile-time-sized array to a range.
|
||||
@@ -66,5 +65,3 @@ typedef ArrayConstRange<const char*> StringArrayRange;
|
||||
#define STRING_ARRAY_RANGE( array ) ( StringArrayRange( array, ARRAY_END( array ) ) )
|
||||
|
||||
typedef ArrayRange<const char> StringRange;
|
||||
|
||||
#endif
|
||||
|
||||
@@ -19,8 +19,7 @@
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#if !defined( INCLUDED_GENERIC_BITFIELD_H )
|
||||
#define INCLUDED_GENERIC_BITFIELD_H
|
||||
#pragma once
|
||||
|
||||
/// \file
|
||||
/// \brief Type safe bitfield.
|
||||
@@ -111,5 +110,3 @@ template<typename Enumeration>
|
||||
inline bool bitfield_enabled( BitFieldValue<Enumeration> bitfield, BitFieldValue<Enumeration> mask ){
|
||||
return ( bitfield & mask ).get() != 0;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -19,8 +19,7 @@
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#if !defined( INCLUDED_GENERIC_CLOSURE_H )
|
||||
#define INCLUDED_GENERIC_CLOSURE_H
|
||||
#pragma once
|
||||
|
||||
/// \file
|
||||
/// \brief Type-safe techniques for binding the first argument of an opaque callback.
|
||||
@@ -668,6 +667,3 @@ typedef Callback1<const StringImportCallback&> StringExportCallback;
|
||||
|
||||
typedef Callback1<std::size_t> SizeImportCallback;
|
||||
typedef Callback1<const SizeImportCallback&> SizeExportCallback;
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
|
||||
#if !defined( INCLUDED_CALLBACKFWD_H )
|
||||
#define INCLUDED_CALLBACKFWD_H
|
||||
#pragma once
|
||||
|
||||
template<typename Return>
|
||||
class Callback0;
|
||||
@@ -14,5 +13,3 @@ class Callback2;
|
||||
|
||||
template<typename FirstArgument, typename SecondArgument, typename ThirdArgument, typename Result = void>
|
||||
class Callback3;
|
||||
|
||||
#endif
|
||||
|
||||
@@ -19,13 +19,10 @@
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#if !defined( INCLUDED_GENERIC_CONSTANT_H )
|
||||
#define INCLUDED_GENERIC_CONSTANT_H
|
||||
#pragma once
|
||||
|
||||
/// \file
|
||||
/// \brief Language extensions for constants that are guaranteed to be evaluated at compile-time.
|
||||
|
||||
#define STRING_CONSTANT( name, value ) static constexpr const char* name = value
|
||||
#define INTEGER_CONSTANT( name, value ) static constexpr int name = value
|
||||
|
||||
#endif
|
||||
|
||||
@@ -19,8 +19,7 @@
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#if !defined( INCLUDED_GENERIC_ENUMERATION_H )
|
||||
#define INCLUDED_GENERIC_ENUMERATION_H
|
||||
#pragma once
|
||||
|
||||
/// \file
|
||||
/// \brief Type safe enumeration.
|
||||
@@ -52,5 +51,3 @@ template<typename Enumeration>
|
||||
inline bool operator!=( EnumeratedValue<Enumeration> self, EnumeratedValue<Enumeration> other ){
|
||||
return !operator==( self, other );
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
|
||||
#if !defined( INCLUDED_FUNCTIONAL_H )
|
||||
#define INCLUDED_FUNCTIONAL_H
|
||||
#pragma once
|
||||
|
||||
template<typename Object, typename R, R( Object::*member ) ( )>
|
||||
class Member
|
||||
@@ -314,6 +313,3 @@ class TypeEqual<Other, True, False, Other>
|
||||
public:
|
||||
typedef True type;
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
@@ -19,8 +19,7 @@
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#if !defined( INCLUDED_GENERIC_OBJECT_H )
|
||||
#define INCLUDED_GENERIC_OBJECT_H
|
||||
#pragma once
|
||||
|
||||
/// \file
|
||||
/// \brief Convenience functions (syntactic sugar) to wrap explicit constructor (aka in-place 'new') and destructor calls.
|
||||
@@ -82,7 +81,3 @@ template<typename Type>
|
||||
inline void destructor( Type& object ){
|
||||
object.~Type();
|
||||
}
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
@@ -19,8 +19,7 @@
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#if !defined( INCLUDED_GENERIC_REFERENCE_H )
|
||||
#define INCLUDED_GENERIC_REFERENCE_H
|
||||
#pragma once
|
||||
|
||||
/// \file
|
||||
/// \brief Wrappers to allow storing objects in templated containers using 'reference' semantics.
|
||||
@@ -98,6 +97,3 @@ template<typename Type>
|
||||
inline ConstReference<Type> makeReference( const Type& value ){
|
||||
return ConstReference<Type>( value );
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
@@ -19,8 +19,7 @@
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#if !defined( INCLUDED_GENERIC_REFERENCECOUNTED_H )
|
||||
#define INCLUDED_GENERIC_REFERENCECOUNTED_H
|
||||
#pragma once
|
||||
|
||||
/// \file
|
||||
/// \brief 'smart' pointers and references.
|
||||
@@ -176,5 +175,3 @@ inline void swap( SmartReference<Type>& self, SmartReference<Type>& other ){
|
||||
self.swap( other );
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -19,8 +19,7 @@
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#if !defined( INCLUDED_GENERIC_STATIC_H )
|
||||
#define INCLUDED_GENERIC_STATIC_H
|
||||
#pragma once
|
||||
|
||||
/// \file
|
||||
/// \brief Template techniques for instantiating singletons.
|
||||
@@ -135,6 +134,3 @@ public:
|
||||
return CountedStatic<Type, Context>::instance();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
|
||||
#if !defined( INCLUDED_VECTOR_H )
|
||||
#define INCLUDED_VECTOR_H
|
||||
#pragma once
|
||||
|
||||
#include <cstddef>
|
||||
|
||||
@@ -258,6 +257,3 @@ template<typename TextOutputStreamType>
|
||||
TextOutputStreamType& ostream_write( TextOutputStreamType& t, const Vector4& v ){
|
||||
return t << "[ " << v.x() << ' ' << v.y() << ' ' << v.z() << ' ' << v.w() << " ]";
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user