Go to the documentation of this file.00001 #ifndef wali_COMMON_GUARD
00002 #define wali_COMMON_GUARD 1
00003
00004
00005
00006
00007
00008 #include <climits>
00009 #include <string>
00010 #include <iostream>
00011 #include "wali/Key.hpp"
00012
00013 namespace wali
00014 {
00015 typedef Key wali_key_t;
00016 static const Key WALI_EPSILON = 0;
00017 static const Key WALI_WILD = 1;
00018 static const Key WALI_BAD_KEY = UINT_MAX;
00019
00020
00021 extern std::ostream* waliErr;
00022
00023
00024
00025
00026 extern std::ostream* set_wali_err( std::ostream* newErr );
00027
00028
00029 extern std::ostream* setWaliErr( std::ostream* newErr );
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039 extern void set_verify_fwpds( bool enable );
00040
00041
00042 extern bool get_verify_fwpds();
00043
00044
00045
00046
00047
00048 extern void set_lazy_fwpds( bool enable );
00049
00050
00051
00052
00053
00054 extern bool is_lazy_fwpds();
00055
00056
00057
00058
00059
00060 extern void set_strict( bool enable );
00061
00062
00063
00064
00065
00066 extern bool is_strict();
00067
00068 }
00069
00070
00071
00072
00073
00074
00075
00076 #if defined(__GNUC__)
00077 # define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
00078 # if( GCC_VERSION >= 30400 )
00079 # define ATTR_UNUSED __attribute__((__unused__))
00080 # else
00081 # define ATTR_UNUSED
00082 # endif
00083 #elif defined(_WIN32)
00084 # pragma once
00085 # define ATTR_UNUSED
00086 # if _MSC_VER > 1000
00087 # pragma warning(disable: 4786)
00088 # pragma warning(disable: 4250)
00089 # endif
00090 # if !defined(_CPPRTTI)
00091 # error RTTI is required by WALi.
00092 # endif
00093 #endif // defined(__GNUC__)
00094
00095 #endif // wali_COMMON_GUARD
00096