EasyDelegate  2.0
Delegate and deferred callers for C++11.
easydelegate.hpp
Go to the documentation of this file.
1 
12 #ifndef _INCLUDE_EASYDELEGATE_HPP_
13 #define _INCLUDE_EASYDELEGATE_HPP_
14 
15 // Define __forceinline if we're on GCC
16 #if defined(__GNUC__) || defined(__GNUG__)
17  #define __forceinline __attribute__((always_inline))
18  #define EASYDELEGATE_NOEXCEPT noexcept
19  #define EASYDELEGATE_CONSTEXPR constexpr
20 // Otherwise, define noexcept
21 #else
22  #define EASYDELEGATE_NOEXCEPT
24  #define EASYDELEGATE_CONSTEXPR
26 #endif
27 
28 // If we're going to inline stuff, force it
29 #ifdef EASYDELEGATE_FORCE_INLINE
30  #define EASYDELEGATE_INLINE __forceinline
31 #else
32  #define EASYDELEGATE_INLINE
34 #endif
35 
36 #include "types.hpp"
37 #include "delegates.hpp"
38 #include "delegateset.hpp"
39 #include "deferredcallers.hpp"
40 
42 namespace EasyDelegate
43 {
44 
45 } // End Namespace EasyDelegate
46 #endif // _INCLUDE_EASYDELEGATE_HPP_
Include file declaring the deferred caller types for use in systems where deferred calls is a necessi...
Include file containing the definition for the DelegateSet class.
Include file declaring various helper types used by the EasyDelegate library. They may also aid progr...
Namespace containing all EasyDelegate functionality.
Definition: deferredcallers.hpp:20
Include file declaring various delegate types.