internal.h 705 字节
Newer Older
1 2 3 4
/*
 * internal.h: internal definitions just used by code from the library
 */

5 6
#ifndef __VIR_INTERNAL_H__
#define __VIR_INTERNAL_H__
7 8 9 10 11

#ifdef __cplusplus
extern "C" {
#endif

D
Daniel Veillard 已提交
12 13 14 15 16
/**
 * ATTRIBUTE_UNUSED:
 *
 * Macro to flag conciously unused parameters to functions
 */
17 18 19 20 21 22 23 24 25 26 27
#ifdef __GNUC__
#ifdef HAVE_ANSIDECL_H
#include <ansidecl.h>
#endif
#ifndef ATTRIBUTE_UNUSED
#define ATTRIBUTE_UNUSED __attribute__((unused))
#endif
#else
#define ATTRIBUTE_UNUSED
#endif

D
Daniel Veillard 已提交
28 29 30 31 32 33 34 35 36
/**
 * TODO:
 *
 * macro to flag unimplemented blocks
 */
#define TODO 								\
    fprintf(stderr, "Unimplemented block at %s:%d\n",			\
            __FILE__, __LINE__);

37 38 39 40
#ifdef __cplusplus
}
#endif /* __cplusplus */

41
#endif /* __VIR_INTERNAL_H__ */