stumpless 2.2.0
载入中...
搜索中...
未找到
mask.h
浏览该文件的文档.
1/* SPDX-License-Identifier: Apache-2.0 */
2
3/*
4 * Copyright 2020-2024 Joel E. Anderson
5 *
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18
69#ifndef __STUMPLESS_LEVEL_MASK_H
70# define __STUMPLESS_LEVEL_MASK_H
71
72# if defined( STUMPLESS_ENABLE_UPTO_DEBUG ) || \
73 defined( STUMPLESS_DISABLE_DOWNTO_TRACE )
74# define STUMPLESS_DISABLE_TRACE_LEVEL 1
75# endif
76
77# if defined( STUMPLESS_ENABLE_UPTO_INFO ) || \
78 defined( STUMPLESS_DISABLE_DOWNTO_DEBUG )
79# define STUMPLESS_DISABLE_DEBUG_LEVEL 1
80# define STUMPLESS_DISABLE_TRACE_LEVEL 1
81# endif
82
83# if defined( STUMPLESS_ENABLE_UPTO_NOTICE ) || \
84 defined( STUMPLESS_DISABLE_DOWNTO_INFO )
85# define STUMPLESS_DISABLE_INFO_LEVEL 1
86# define STUMPLESS_DISABLE_DEBUG_LEVEL 1
87# define STUMPLESS_DISABLE_TRACE_LEVEL 1
88# endif
89
90# if defined( STUMPLESS_ENABLE_UPTO_WARNING ) || \
91 defined( STUMPLESS_DISABLE_DOWNTO_NOTICE )
92# define STUMPLESS_DISABLE_NOTICE_LEVEL 1
93# define STUMPLESS_DISABLE_INFO_LEVEL 1
94# define STUMPLESS_DISABLE_DEBUG_LEVEL 1
95# define STUMPLESS_DISABLE_TRACE_LEVEL 1
96# endif
97
98# if defined( STUMPLESS_ENABLE_UPTO_ERR ) || \
99 defined( STUMPLESS_DISABLE_DOWNTO_WARNING )
100# define STUMPLESS_DISABLE_WARNING_LEVEL 1
101# define STUMPLESS_DISABLE_NOTICE_LEVEL 1
102# define STUMPLESS_DISABLE_INFO_LEVEL 1
103# define STUMPLESS_DISABLE_DEBUG_LEVEL 1
104# define STUMPLESS_DISABLE_TRACE_LEVEL 1
105# endif
106
107# if defined( STUMPLESS_ENABLE_UPTO_CRIT ) || \
108 defined( STUMPLESS_DISABLE_DOWNTO_ERR )
109# define STUMPLESS_DISABLE_ERR_LEVEL 1
110# define STUMPLESS_DISABLE_WARNING_LEVEL 1
111# define STUMPLESS_DISABLE_NOTICE_LEVEL 1
112# define STUMPLESS_DISABLE_INFO_LEVEL 1
113# define STUMPLESS_DISABLE_DEBUG_LEVEL 1
114# define STUMPLESS_DISABLE_TRACE_LEVEL 1
115# endif
116
117# if defined( STUMPLESS_ENABLE_UPTO_ALERT ) || \
118 defined( STUMPLESS_DISABLE_DOWNTO_CRIT )
119# define STUMPLESS_DISABLE_CRIT_LEVEL 1
120# define STUMPLESS_DISABLE_ERR_LEVEL 1
121# define STUMPLESS_DISABLE_WARNING_LEVEL 1
122# define STUMPLESS_DISABLE_NOTICE_LEVEL 1
123# define STUMPLESS_DISABLE_INFO_LEVEL 1
124# define STUMPLESS_DISABLE_DEBUG_LEVEL 1
125# define STUMPLESS_DISABLE_TRACE_LEVEL 1
126# endif
127
128# if defined( STUMPLESS_ENABLE_UPTO_EMERG ) || \
129 defined( STUMPLESS_DISABLE_DOWNTO_ALERT )
130# define STUMPLESS_DISABLE_ALERT_LEVEL 1
131# define STUMPLESS_DISABLE_CRIT_LEVEL 1
132# define STUMPLESS_DISABLE_ERR_LEVEL 1
133# define STUMPLESS_DISABLE_WARNING_LEVEL 1
134# define STUMPLESS_DISABLE_NOTICE_LEVEL 1
135# define STUMPLESS_DISABLE_INFO_LEVEL 1
136# define STUMPLESS_DISABLE_DEBUG_LEVEL 1
137# define STUMPLESS_DISABLE_TRACE_LEVEL 1
138# endif
139
140# if defined( STUMPLESS_DISABLE_ALL_LEVELS ) || \
141 defined( STUMPLESS_DISABLE_DOWNTO_EMERG )
142# define STUMPLESS_DISABLE_EMERG_LEVEL 1
143# define STUMPLESS_DISABLE_ALERT_LEVEL 1
144# define STUMPLESS_DISABLE_CRIT_LEVEL 1
145# define STUMPLESS_DISABLE_ERR_LEVEL 1
146# define STUMPLESS_DISABLE_WARNING_LEVEL 1
147# define STUMPLESS_DISABLE_NOTICE_LEVEL 1
148# define STUMPLESS_DISABLE_INFO_LEVEL 1
149# define STUMPLESS_DISABLE_DEBUG_LEVEL 1
150# define STUMPLESS_DISABLE_TRACE_LEVEL 1
151# endif
152
153#endif /* __STUMPLESS_LEVEL_MASK_H */