00001 #pragma once
00002 #ifndef OSCAP_DEBUG_H
00003 #define OSCAP_DEBUG_H
00004
00005 #ifndef oscap_dprintf
00006 #if defined(NDEBUG)
00007 # define oscap_dprintf(...) while(0)
00008 #else
00009 # include <stddef.h>
00010 # include <stdarg.h>
00011 void __oscap_dprintf(const char *, const char *, size_t, const char *, ...);
00012 # define oscap_dprintf(...) __oscap_dprintf (__FILE__, __PRETTY_FUNCTION__, __LINE__, __VA_ARGS__)
00013 #endif
00014 #endif
00015
00016 #ifndef OSCAP_DEBUG_FILE
00017 # define OSCAP_DEBUG_FILE "oscap_debug.log"
00018 #endif
00019
00020 #ifndef OSCAP_DEBUG_FILE_ENV
00021 # define OSCAP_DEBUG_FILE_ENV "OSCAP_DEBUG_FILE"
00022 #endif
00023
00024 #endif