2 * Copyright (C) 2005-2009 Atsushi Konno All rights reserved.
3 * Copyright (C) 2005 QSDN,Inc. All rights reserved.
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
20 #include "qs_parse_string.h"
22 #define QX_LOGMARK __FILE__,__LINE__
23 #define QX_LOG_DEBUG (0)
24 #define QX_LOG_INFO (1)
25 #define QX_LOG_WARN (2)
26 #define QX_LOG_ERROR (3)
27 #define QX_LOG_FATAL (4)
30 #define QX_LOGGER_DEBUG(c) qs_log(doc,QX_LOG_DEBUG,QX_LOGMARK,(c))
31 #define QX_LOGGER_INFO(c) qs_log(doc,QX_LOG_INFO,QX_LOGMARK, (c))
32 #define QX_LOGGER_WARN(c) qs_log(doc,QX_LOG_WARN,QX_LOGMARK, (c))
33 #define QX_LOGGER_ERROR(c) qs_log(doc,QX_LOG_ERROR,QX_LOGMARK, (c))
34 #define QX_LOGGER_FATAL(c) qs_log(doc,QX_LOG_FATAL,QX_LOGMARK,(c))
35 #define QX_LOGGER_DEBUG_INT(x,y) qs_log_int(doc,QX_LOG_DEBUG,QX_LOGMARK,(x),(y))
44 extern void qs_log_int(
53 #elif defined(__GNUC__)
54 # define UNUSED(x) UNUSED_ ## x __attribute__((unused))
55 #elif defined(__LCLINT__)
56 # define UNUSED(x) /*@unused@*/ x