• Main Page
  • Related Pages
  • Modules
  • Data Structures
  • Files
  • File List
  • Globals

/home/pvrabec/project/openscap/openscap-0.6.3/src/OVAL/probes/SEAP/public/seap-debug.h

Go to the documentation of this file.
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 
00028 #pragma once
00029 #ifndef SEAP_DEBUG_H
00030 #define SEAP_DEBUG_H
00031 
00032 #ifdef __cplusplus
00033 extern "C" {
00034 #endif
00035 
00036 #include <assert.h>
00037 #ifndef _A
00038 #define _A(x) assert(x)
00039 #endif
00040 
00041 #ifndef _D
00042 #if defined(NDEBUG)
00043 # define _D(...) while(0)
00044 # define _LOGCALL_ while(0)
00045 #else
00046 # include <stddef.h>
00047 # include <stdarg.h>
00056 void __seap_debuglog (const char *srcfile, const char *srcfn, size_t srcln, const char *fmt, ...);
00062 # define _D(...) __seap_debuglog (__FILE__, __PRETTY_FUNCTION__, __LINE__, __VA_ARGS__)
00063 # define _LOGCALL_ _D("called\n");
00064 #endif /* NDEBUG */
00065 #endif /* _D */
00066 
00069 #define SEAP_DEBUG_FILE "seap_debug.log"
00070 
00074 #define SEAP_DEBUG_FILE_ENV "SEAP_DEBUG_FILE"
00075 
00076 #ifdef __cplusplus
00077 }
00078 #endif
00079 
00080 #endif /* SEAP_DEBUG_H */

Generated on Tue Sep 14 2010 for Open SCAP Library by  doxygen 1.7.1