* Verify that the thing at index is a request_rec wrapping * userdata thingamajig and return it if it is. if it is not * lua will enter its error handling routine. */
| 116 | * lua will enter its error handling routine. |
| 117 | */ |
| 118 | static request_rec *ap_lua_check_request_rec(lua_State *L, int index) |
| 119 | { |
| 120 | request_rec *r; |
| 121 | luaL_checkudata(L, index, "Apache2.Request"); |
| 122 | r = (request_rec *) lua_unboxpointer(L, index); |
| 123 | return r; |
| 124 | } |
| 125 | |
| 126 | /* ------------------ request methods -------------------- */ |
| 127 | /* helper callback for req_parseargs */ |
no outgoing calls
no test coverage detected