KIM API V2
KIM_ModelComputeArgumentsDestroyLogMacros.hpp
Go to the documentation of this file.
1 //
2 // CDDL HEADER START
3 //
4 // The contents of this file are subject to the terms of the Common Development
5 // and Distribution License Version 1.0 (the "License").
6 //
7 // You can obtain a copy of the license at
8 // http://www.opensource.org/licenses/CDDL-1.0. See the License for the
9 // specific language governing permissions and limitations under the License.
10 //
11 // When distributing Covered Code, include this CDDL HEADER in each file and
12 // include the License file in a prominent location with the name LICENSE.CDDL.
13 // If applicable, add the following below this CDDL HEADER, with the fields
14 // enclosed by brackets "[]" replaced with your own identifying information:
15 //
16 // Portions Copyright (c) [yyyy] [name of copyright owner]. All rights reserved.
17 //
18 // CDDL HEADER END
19 //
20 
21 //
22 // Copyright (c) 2016--2018, Regents of the University of Minnesota.
23 // All rights reserved.
24 //
25 // Contributors:
26 // Ryan S. Elliott
27 //
28 
29 //
30 // Release: This file is part of the kim-api-v2.0.0-beta.0 package.
31 //
32 
33 
34 #undef FATAL_VERBOSITY
35 #define FATAL_VERBOSITY (KIM_LOG_MAXIMUM_LEVEL >= KIM_LOG_VERBOSITY_FATAL_)
36 #ifdef LOG_FATAL
37 #undef LOG_FATAL
38 #endif
39 #if (KIM_LOG_MAXIMUM_LEVEL >= KIM_LOG_VERBOSITY_FATAL_)
40 #define LOG_FATAL(message) \
41  modelComputeArgumentsDestroy->LogEntry(KIM::LOG_VERBOSITY::fatal, message, \
42  __LINE__, __FILE__)
43 #else
44 #define LOG_FATAL(message)
45 #endif
46 
47 #undef ERROR_VERBOSITY
48 #define ERROR_VERBOSITY (KIM_LOG_MAXIMUM_LEVEL >= KIM_LOG_VERBOSITY_ERROR_)
49 #ifdef LOG_ERROR
50 #undef LOG_ERROR
51 #endif
52 #if (KIM_LOG_MAXIMUM_LEVEL >= KIM_LOG_VERBOSITY_ERROR_)
53 #define LOG_ERROR(message) \
54  modelComputeArgumentsDestroy->LogEntry(KIM::LOG_VERBOSITY::error, message, \
55  __LINE__, __FILE__)
56 #else
57 #define LOG_ERROR(message)
58 #endif
59 
60 #undef WARNING_VERBOSITY
61 #define WARNING_VERBOSITY (KIM_LOG_MAXIMUM_LEVEL >= KIM_LOG_VERBOSITY_WARNING_)
62 #ifdef LOG_WARNING
63 #undef LOG_WARNING
64 #endif
65 #if (KIM_LOG_MAXIMUM_LEVEL >= KIM_LOG_VERBOSITY_WARNING_)
66 #define LOG_WARNING(message) \
67  modelComputeArgumentsDestroy->LogEntry(KIM::LOG_VERBOSITY::warning, message, \
68  __LINE__, __FILE__)
69 #else
70 #define LOG_WARNING(message)
71 #endif
72 
73 #undef INFORMATION_VERBOSITY
74 #define INFORMATION_VERBOSITY (KIM_LOG_MAXIMUM_LEVEL >= KIM_LOG_VERBOSITY_INFORMATION_)
75 #ifdef LOG_INFORMATION
76 #undef LOG_INFORMATION
77 #endif
78 #if (KIM_LOG_MAXIMUM_LEVEL >= KIM_LOG_VERBOSITY_INFORMATION_)
79 #define LOG_INFORMATION(message) \
80  modelComputeArgumentsDestroy->LogEntry(KIM::LOG_VERBOSITY::information, \
81  message, __LINE__, __FILE__)
82 #else
83 #define LOG_INFORMATION(message)
84 #endif
85 
86 #undef DEBUG_VERBOSITY
87 #define DEBUG_VERBOSITY (KIM_LOG_MAXIMUM_LEVEL >= KIM_LOG_VERBOSITY_DEBUG_)
88 #ifdef LOG_DEBUG
89 #undef LOG_DEBUG
90 #endif
91 #if (KIM_LOG_MAXIMUM_LEVEL >= KIM_LOG_VERBOSITY_DEBUG_)
92 #define LOG_DEBUG(message) \
93  modelComputeArgumentsDestroy->LogEntry(KIM::LOG_VERBOSITY::debug, message, \
94  __LINE__, __FILE__)
95 #else
96 #define LOG_DEBUG(message)
97 #endif