KIM API V2
KIM_ModelRefreshLogMacros.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-alpha.0 package. */
33 /* */
34 
35 
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  KIM_ModelRefresh_LogEntry(modelRefresh, \
42  KIM_LOG_VERBOSITY_fatal, message, \
43  __LINE__, __FILE__)
44 #else
45 #define LOG_FATAL(message)
46 #endif
47 
48 #ifdef LOG_ERROR
49 #undef LOG_ERROR
50 #endif
51 #if (KIM_LOG_MAXIMUM_LEVEL >= KIM_LOG_VERBOSITY_ERROR_)
52 #define LOG_ERROR(message) \
53  KIM_ModelRefresh_LogEntry(modelRefresh, \
54  KIM_LOG_VERBOSITY_error, message, \
55  __LINE__, __FILE__)
56 #else
57 #define LOG_ERROR(message)
58 #endif
59 
60 #ifdef LOG_WARNING
61 #undef LOG_WARNING
62 #endif
63 #if (KIM_LOG_MAXIMUM_LEVEL >= KIM_LOG_VERBOSITY_WARNING_)
64 #define LOG_WARNING(message) \
65  KIM_ModelRefresh_LogEntry(modelRefresh, \
66  KIM_LOG_VERBOSITY_warning, message, \
67  __LINE__, __FILE__)
68 #else
69 #define LOG_WARNING(message)
70 #endif
71 
72 #ifdef LOG_INFORMATION
73 #undef LOG_INFORMATION
74 #endif
75 #if (KIM_LOG_MAXIMUM_LEVEL >= KIM_LOG_VERBOSITY_INFORMATION_)
76 #define LOG_INFORMATION(message) \
77  KIM_ModelRefresh_LogEntry(modelRefresh, \
78  KIM_LOG_VERBOSITY_information, message, \
79  __LINE__, __FILE__)
80 #else
81 #define LOG_INFORMATION(message)
82 #endif
83 
84 #ifdef LOG_DEBUG
85 #undef LOG_DEBUG
86 #endif
87 #if (KIM_LOG_MAXIMUM_LEVEL >= KIM_LOG_VERBOSITY_DEBUG_)
88 #define LOG_DEBUG(message) \
89  KIM_ModelRefresh_LogEntry(modelRefresh, \
90  KIM_LOG_VERBOSITY_debug, message, \
91  __LINE__, __FILE__)
92 #else
93 #define LOG_DEBUG(message)
94 #endif