Libmacro  0.2
Libmacro is an extensible macro and hotkey library.
dispatch_receiver_less.h
1 /* Libmacro - A multi-platform, extendable macro and hotkey C library
2  Copyright (C) 2013 Jonathan Pelletier, New Paradigm Software
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Lesser General Public
6  License as published by the Free Software Foundation; either
7  version 2.1 of the License, or (at your option) any later version.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Lesser General Public License for more details.
13 
14  You should have received a copy of the GNU Lesser General Public
15  License along with this library; if not, write to the Free Software
16  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18 
19 #ifndef __cplusplus
20  #pragma message "C++ support is required for extras module"
21  #include "mcr/err.h"
22 #endif
23 
24 #ifndef MCR_EXTRAS_UTIL_DISPATCH_RECEIVER_LESS_H_
25 #define MCR_EXTRAS_UTIL_DISPATCH_RECEIVER_LESS_H_
26 
27 #include "mcr/extras/base_cpp.h"
28 
29 #include <functional>
30 
31 namespace mcr
32 {
33 struct dispatch_receiver_less : std::binary_function<mcr_DispatchReceiver, mcr_DispatchReceiver, bool>
34 {
35  bool operator()(const mcr_DispatchReceiver &s1, const mcr_DispatchReceiver &s2) const
36  {
37  return s1.receiver < s2.receiver;
38  }
39 };
40 }
41 
42 #endif
Raise a compiler error. Usage: #include "mcr/err.h"
void * receiver
Definition: types.h:64
Libmacro, by Jonathan Pelletier, New Paradigm Software. Alpha version.
Definition: classes.h:31