92 #define ALT_FN(n) PPCAT(__, n) 93 #define ALT_DCL(n) extern REAL_TYPE(n) ALT_FN(n) 94 #define ALT_TYPEDEF(rt, n) typedef rt REAL_TYPE(n) 97 #ifdef HPCRUN_STATIC_LINK 98 #define DL_FN(n) PPCAT(__real_, n) 99 #define DL_DCL(n) extern REAL_TYPE(n) DL_FN(n) 100 #define DL_TYPEDEF(rt, n) typedef rt REAL_TYPE(n) 103 #define OVERRIDE_NM(n) PPCAT(__wrap_, n) 105 #define DL_FN(n) PPCAT(real_, n) 106 #define DL_DCL(n) static REAL_TYPE(n) DL_FN(n) 107 #define DL_TYPEDEF(rt, n) typedef rt (*REAL_TYPE(n)) 108 #define DL_INIT(n) if (! DL_FN(n) ){DL_FN(n) = override_lookup(PPSTR(n));} 109 #define DLV_INIT(n) if (! DL_FN(n) ){DL_FN(n) = override_lookupv(PPSTR(n));} 110 #define OVERRIDE_NM(n) n 111 #endif // STATIC_LINK 118 #define DLV_FN(n) DL_FN(n) 119 #define DLV_DCL(n) DL_DCL(n) 120 #define DLV_TYPEDEF(rt, n) DL_TYPEDEF(rt, n) 122 #define REAL_TYPE(n) PPCAT(n, _t) 124 #define REAL_FN(n) PPCAT(PPCAT(n, _REAL),_FN)(n) 125 #define REAL_TYPEDEF(rt, n) PPCAT(PPCAT(n, _REAL), _TYPEDEF)(rt, n) 126 #define REAL_DCL(n) PPCAT(PPCAT(n, _REAL), _DCL)(n) 127 #define REAL_INIT(n) PPCAT(PPCAT(n, _REAL), _INIT)(n) 132 #endif // OVERRIDES_H void * override_lookupv(char *fname)
void * override_lookup(char *fname)