| 149 | } |
| 150 | |
| 151 | static inline void context_put_ptr(enum osips_context type, context_p ctx, |
| 152 | int pos, void *data) |
| 153 | { |
| 154 | #ifdef DBG_MALLOC |
| 155 | if (pos < 0 || pos >= type_sizes[type][CONTEXT_PTR_TYPE]) { |
| 156 | LM_CRIT("Bad pos: %d (%d)\n", pos, type_sizes[type][CONTEXT_PTR_TYPE]); |
| 157 | abort(); |
| 158 | } |
| 159 | #endif |
| 160 | |
| 161 | ((void **)(void *)((char *)ctx + type_offsets[type][CONTEXT_PTR_TYPE]))[pos] = data; |
| 162 | } |
| 163 | |
| 164 | /****************************** GETTERS ********************************/ |
| 165 |
no outgoing calls
no test coverage detected