CLI  2.9
preprocessing.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2006-2018, Alexis Royer, http://alexis.royer.free.fr/CLI
3 
4  All rights reserved.
5 
6  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
7 
8  * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
9  * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation
10  and/or other materials provided with the distribution.
11  * Neither the name of the CLI library project nor the names of its contributors may be used to endorse or promote products derived from this software
12  without specific prior written permission.
13 
14  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
15  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
16  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
17  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
18  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
19  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
20  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
21  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
22  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
23  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */
26 
27 
35 #error Do not include preprocessing.h
36 
37 #ifndef _CLI_PREPROCESSING_H_
38 #define _CLI_PREPROCESSING_H_
39 
40 
47  #define CLI_NO_NAMESPACE <set to disable namespaces>
48 
52  #define _DEBUG <set to enable debug utilities>
53 
55  #define CLI_ASSERT(a) <set to override default implementation>
56 
60  #define CLI_NO_STL <use inner instead of STL for tk objects>
61 
65  #define CLI_NO_REGEX <set to disable regular expressions>
66 
69  #define CLI_TELNET_INPUT_BUFFER_SIZE <set to adjust telnet input buffer>
70 
75  #define CLI_WIN_NETWORK <set to enable Windows networking>
76 
77 // Constraints
81  #define CLI_MAX_CLI_REGISTRY_COUNT <adjust constraint>
82 
86  #define CLI_MAX_MENU_PER_CLI <adjust constraint>
87 
91  #define CLI_MAX_CMD_LINE_LENGTH <adjust constraint>
92 
96  #define CLI_MAX_CMD_LINE_WORD_COUNT <adjust constraint>
97 
101  #define CLI_MAX_WORD_LENGTH <adjust constraint>
102 
107  #define CLI_MAX_DEVICE_NAME_LENGTH <adjust constraint>
108 
112  #define CLI_MAX_FILE_PATH_LENGTH <adjust constraint>
113 
117  #define CLI_MAX_IO_MUX_INPUTS <adjust constraint>
118 
122  #define CLI_MAX_WORDS_PER_NODE <adjust constraint>
123 
127  #define CLI_MAX_RESOURCE_LENGTH <adjust constraint>
128 
132  #define CLI_MAX_TRACE_CLASS_COUNT <adjust constraint>
133 
137  #define CLI_MAX_TRACE_CLASS_NAME_LENGTH <adjust constraint>
138 
139 #endif // _CLI_PREPROCESSING_H_