00001 00006 /* 00007 * Copyright 2009 Red Hat Inc., Durham, North Carolina. 00008 * All Rights Reserved. 00009 * 00010 * This library is free software; you can redistribute it and/or 00011 * modify it under the terms of the GNU Lesser General Public 00012 * License as published by the Free Software Foundation; either 00013 * version 2.1 of the License, or (at your option) any later version. 00014 * 00015 * This library is distributed in the hope that it will be useful, 00016 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00018 * Lesser General Public License for more details. 00019 * 00020 * You should have received a copy of the GNU Lesser General Public 00021 * License along with this library; if not, write to the Free Software 00022 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00023 * 00024 * Authors: 00025 * "Daniel Kopecek" <dkopecek@redhat.com> 00026 */ 00027 #ifndef SEAP_DEBUG_H 00028 #define SEAP_DEBUG_H 00029 00030 #include <assert.h> 00031 #include "common/debug_priv.h" 00032 00033 #ifdef __cplusplus 00034 extern "C" { 00035 #endif 00036 00037 #ifndef _A 00038 #define _A(x) assert(x) 00039 #endif 00040 00041 #define _D(...) dI(__VA_ARGS__) 00042 #define _W(...) dW(__VA_ARGS__) 00043 #define _I(...) dI(__VA_ARGS__) 00044 #define _F(...) dE(__VA_ARGS__) 00045 #define _SE(sexp) dO(OSCAP_DEBUGOBJ_SEXP, sexp) 00046 #define _LOGCALL_ while(0) 00047 00048 #ifdef __cplusplus 00049 } 00050 #endif 00051 00052 #endif /* SEAP_DEBUG_H */