as2js: /home/snapwebsites/snapcpp/contrib/as2js/include/as2js/compare.h Source File

compare.h
Go to the documentation of this file.
1 #ifndef AS2JS_COMPARE_H
2 #define AS2JS_COMPARE_H
3 /* include/as2js/compare.h
4 
5 Copyright (c) 2005-2019 Made to Order Software Corp. All Rights Reserved
6 
8 
9 Permission is hereby granted, free of charge, to any
10 person obtaining a copy of this software and
11 associated documentation files (the "Software"), to
12 deal in the Software without restriction, including
13 without limitation the rights to use, copy, modify,
14 merge, publish, distribute, sublicense, and/or sell
15 copies of the Software, and to permit persons to whom
16 the Software is furnished to do so, subject to the
17 following conditions:
18 
19 The above copyright notice and this permission notice
20 shall be included in all copies or substantial
21 portions of the Software.
22 
23 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
24 ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
25 LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
26 FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
27 EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
28 LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
29 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
30 ARISING FROM, OUT OF OR IN CONNECTION WITH THE
31 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
32 SOFTWARE.
33 
34 */
35 
36 
37 namespace as2js
38 {
39 
40 
41 enum class compare_t
42 {
43  COMPARE_EQUAL = 0,
44  COMPARE_GREATER = 1,
45  COMPARE_LESS = -1,
47  COMPARE_ERROR = -2,
48  COMPARE_UNDEFINED = -3 // not yet compared
49 };
50 
51 
52 namespace compare_utils
53 {
54 inline bool is_ordered(compare_t const c)
55 {
57 }
58 }
59 // namespace compare
60 
61 }
62 // namespace as2js
63 #endif
64 // #ifndef AS2JS_COMPARE_H
65 
66 // vim: ts=4 sw=4 et
bool is_ordered(compare_t const c)
Definition: compare.h:54
The AlexScript to JavaScript namespace.
Definition: compiler.cpp:37
compare_t
Definition: compare.h:41

This document is part of the Snap! Websites Project.

Copyright by Made to Order Software Corp.

Syndicate content

Snap! Websites
An Open Source CMS System in C++

Contact Us Directly