| 164 | /****************************** GETTERS ********************************/ |
| 165 | |
| 166 | static inline int context_get_int(enum osips_context type, |
| 167 | context_p ctx, int pos) |
| 168 | { |
| 169 | #ifdef DBG_MALLOC |
| 170 | if (pos < 0 || pos >= type_sizes[type][CONTEXT_INT_TYPE]) { |
| 171 | LM_CRIT("Bad pos: %d (%d)\n", pos, type_sizes[type][CONTEXT_INT_TYPE]); |
| 172 | abort(); |
| 173 | } |
| 174 | #endif |
| 175 | |
| 176 | return ((int *)ctx)[pos]; |
| 177 | } |
| 178 | |
| 179 | static inline str *context_get_str(enum osips_context type, |
| 180 | context_p ctx, int pos) |
no outgoing calls
no test coverage detected