KIM API V2
KIM_ModelDriverCreateLogMacros.h
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 */
5 /* Development 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 */
13 /* LICENSE.CDDL. */
14 /* If applicable, add the following below this CDDL HEADER, with the fields */
15 /* enclosed by brackets "[]" replaced with your own identifying information: */
16 /* */
17 /* Portions Copyright (c) [yyyy] [name of copyright owner]. */
18 /* All rights reserved. */
19 /* */
20 /* CDDL HEADER END */
21 /* */
22 
23 /* */
24 /* Copyright (c) 2016--2018, Regents of the University of Minnesota. */
25 /* All rights reserved. */
26 /* */
27 /* Contributors: */
28 /* Ryan S. Elliott */
29 /* */
30 
31 /* */
32 /* Release: This file is part of the kim-api-v2.0.0-beta.0 package. */
33 /* */
34 
35 
36 #undef FATAL_VERBOSITY
37 #define FATAL_VERBOSITY (KIM_LOG_MAXIMUM_LEVEL >= KIM_LOG_VERBOSITY_FATAL_)
38 #ifdef LOG_FATAL
39 #undef LOG_FATAL
40 #endif
41 #if (KIM_LOG_MAXIMUM_LEVEL >= KIM_LOG_VERBOSITY_FATAL_)
42 #define LOG_FATAL(message) \
43  KIM_ModelDriverCreate_LogEntry(modelDriverCreate, \
44  KIM_LOG_VERBOSITY_fatal, message, \
45  __LINE__, __FILE__)
46 #else
47 #define LOG_FATAL(message)
48 #endif
49 
50 #undef ERROR_VERBOSITY
51 #define ERROR_VERBOSITY (KIM_LOG_MAXIMUM_LEVEL >= KIM_LOG_VERBOSITY_ERROR_)
52 #ifdef LOG_ERROR
53 #undef LOG_ERROR
54 #endif
55 #if (KIM_LOG_MAXIMUM_LEVEL >= KIM_LOG_VERBOSITY_ERROR_)
56 #define LOG_ERROR(message) \
57  KIM_ModelDriverCreate_LogEntry(modelDriverCreate, \
58  KIM_LOG_VERBOSITY_error, message, \
59  __LINE__, __FILE__)
60 #else
61 #define LOG_ERROR(message)
62 #endif
63 
64 #undef WARNING_VERBOSITY
65 #define WARNING_VERBOSITY (KIM_LOG_MAXIMUM_LEVEL >= KIM_LOG_VERBOSITY_WARNING_)
66 #ifdef LOG_WARNING
67 #undef LOG_WARNING
68 #endif
69 #if (KIM_LOG_MAXIMUM_LEVEL >= KIM_LOG_VERBOSITY_WARNING_)
70 #define LOG_WARNING(message) \
71  KIM_ModelDriverCreate_LogEntry(modelDriverCreate, \
72  KIM_LOG_VERBOSITY_warning, message, \
73  __LINE__, __FILE__)
74 #else
75 #define LOG_WARNING(message)
76 #endif
77 
78 #undef INFORMATION_VERBOSITY
79 #define INFORMATION_VERBOSITY (KIM_LOG_MAXIMUM_LEVEL >= KIM_LOG_VERBOSITY_INFORMATION_)
80 #ifdef LOG_INFORMATION
81 #undef LOG_INFORMATION
82 #endif
83 #if (KIM_LOG_MAXIMUM_LEVEL >= KIM_LOG_VERBOSITY_INFORMATION_)
84 #define LOG_INFORMATION(message) \
85  KIM_ModelDriverCreate_LogEntry(modelDriverCreate, \
86  KIM_LOG_VERBOSITY_information, message, \
87  __LINE__, __FILE__)
88 #else
89 #define LOG_INFORMATION(message)
90 #endif
91 
92 #undef DEBUG_VERBOSITY
93 #define DEBUG_VERBOSITY (KIM_LOG_MAXIMUM_LEVEL >= KIM_LOG_VERBOSITY_DEBUG_)
94 #ifdef LOG_DEBUG
95 #undef LOG_DEBUG
96 #endif
97 #if (KIM_LOG_MAXIMUM_LEVEL >= KIM_LOG_VERBOSITY_DEBUG_)
98 #define LOG_DEBUG(message) \
99  KIM_ModelDriverCreate_LogEntry(modelDriverCreate, \
100  KIM_LOG_VERBOSITY_debug, message, \
101  __LINE__, __FILE__)
102 #else
103 #define LOG_DEBUG(message)
104 #endif