KIM API V2
kim_model_destroy_log_macros.fd
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 #include "KIM_LOG_DEFINES.inc"
34 
35 #undef FATAL_VERBOSITY
36 #define FATAL_VERBOSITY (KIM_LOG_MAXIMUM_LEVEL >= KIM_LOG_VERBOSITY_FATAL_)
37 #ifdef LOG_FATAL
38 #undef LOG_FATAL
39 #endif
40 #if (KIM_LOG_MAXIMUM_LEVEL >= KIM_LOG_VERBOSITY_FATAL_)
41 #define LOG_FATAL()\
42 call kim_model_destroy_log_entry(model_destroy_handle, kim_log_verbosity_fatal, kim_log_message, __LINE__, kim_log_file)
43 #else
44 #define LOG_FATAL()
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()\
54 call kim_model_destroy_log_entry(model_destroy_handle, kim_log_verbosity_error, kim_log_message, __LINE__, kim_log_file)
55 #else
56 #define LOG_ERROR()
57 #endif
58 
59 #undef WARNING_VERBOSITY
60 #define WARNING_VERBOSITY (KIM_LOG_MAXIMUM_LEVEL >= KIM_LOG_VERBOSITY_WARNING_)
61 #ifdef LOG_WARNING
62 #undef LOG_WARNING
63 #endif
64 #if (KIM_LOG_MAXIMUM_LEVEL >= KIM_LOG_VERBOSITY_WARNING_)
65 #define LOG_WARNING()\
66 call kim_model_destroy_log_entry(model_destroy_handle, kim_log_verbosity_warning, kim_log_message, __LINE__, kim_log_file)
67 #else
68 #define LOG_WARNING()
69 #endif
70 
71 #undef INFORMATION_VERBOSITY
72 #define INFORMATION_VERBOSITY (KIM_LOG_MAXIMUM_LEVEL >= KIM_LOG_VERBOSITY_INFORMATION_)
73 #ifdef LOG_INFORMATION
74 #undef LOG_INFORMATION
75 #endif
76 #if (KIM_LOG_MAXIMUM_LEVEL >= KIM_LOG_VERBOSITY_INFORMATION_)
77 #define LOG_INFORMATION()\
78 call kim_model_destroy_log_entry(model_destroy_handle, kim_log_verbosity_information, kim_log_message, __LINE__, kim_log_file)
79 #else
80 #define LOG_INFORMATION()
81 #endif
82 
83 #undef DEBUG_VERBOSITY
84 #define DEBUG_VERBOSITY (KIM_LOG_MAXIMUM_LEVEL >= KIM_LOG_VERBOSITY_DEBUG_)
85 #ifdef LOG_DEBUG
86 #undef LOG_DEBUG
87 #endif
88 #if (KIM_LOG_MAXIMUM_LEVEL >= KIM_LOG_VERBOSITY_DEBUG_)
89 #define LOG_DEBUG()\
90 call kim_model_destroy_log_entry(model_destroy_handle, kim_log_verbosity_debug, kim_log_message, __LINE__, kim_log_file)
91 #else
92 #define LOG_DEBUG()
93 #endif