| 190 | } |
| 191 | |
| 192 | static inline void *context_get_ptr(enum osips_context type, |
| 193 | context_p ctx, int pos) |
| 194 | { |
| 195 | #ifdef DBG_MALLOC |
| 196 | if (pos < 0 || pos >= type_sizes[type][CONTEXT_PTR_TYPE]) { |
| 197 | LM_CRIT("Bad pos: %d (%d)\n", pos, type_sizes[type][CONTEXT_PTR_TYPE]); |
| 198 | abort(); |
| 199 | } |
| 200 | #endif |
| 201 | |
| 202 | return ((void **)(void *)((char *)ctx + |
| 203 | type_offsets[type][CONTEXT_PTR_TYPE]))[pos]; |
| 204 | } |
| 205 | |
| 206 | #endif /* __CONTEXT_H */ |
no outgoing calls
no test coverage detected