| 147 | |
| 148 | |
| 149 | static inline int load_tm_api( struct tm_binds *tmb ) |
| 150 | { |
| 151 | load_tm_f load_tm; |
| 152 | |
| 153 | /* import the TM auto-loading function */ |
| 154 | if ( !(load_tm=(load_tm_f)find_export("load_tm", 0))) { |
| 155 | return -1; |
| 156 | } |
| 157 | /* let the auto-loading function load all TM stuff */ |
| 158 | if (load_tm( tmb )==-1) |
| 159 | return -1; |
| 160 | |
| 161 | return 0; |
| 162 | } |
| 163 | |
| 164 | #define run_tm_api(_tmb, _api_func, _args...) \ |
| 165 | ({ \ |
no test coverage detected