00001 00002 /* libfiu - Fault Injection in Userspace 00003 * 00004 * This header, part of libfiu, is meant to be included in your project to 00005 * avoid having libfiu as a mandatory build-time dependency. 00006 * 00007 * You can add it to your project, and #include it instead of fiu.h. 00008 * The real fiu.h will be used only when FIU_ENABLE is defined. 00009 * 00010 * This header, as the rest of libfiu, is in the public domain. 00011 * 00012 * You can find more information about libfiu at 00013 * http://blitiri.com.ar/p/libfiu. 00014 */ 00015 00016 #ifndef _FIU_LOCAL_H 00017 #define _FIU_LOCAL_H 00018 00019 /* Only define the stubs when fiu is disabled, otherwise use the real fiu.h 00020 * header */ 00021 #ifndef FIU_ENABLE 00022 00023 #define fiu_init(flags) 0 00024 #define fiu_fail(name) 0 00025 #define fiu_failinfo() NULL 00026 #define fiu_do_on(name, action) 00027 #define fiu_exit_on(name) 00028 #define fiu_return_on(name, retval) 00029 00030 #else 00031 00032 #include <fiu.h> 00033 00034 #endif /* FIU_ENABLE */ 00035 00036 #endif /* _FIU_LOCAL_H */ 00037