int index;
REQUEST *request = rlm_lua_request;
-#ifndef NDEBUG
rad_assert(lua_islightuserdata(L, lua_upvalueindex(1)));
-#endif
- rad_assert(da = lua_touserdata(L, lua_upvalueindex(1)));
+
+ da = lua_touserdata(L, lua_upvalueindex(1));
+ rad_assert(da);
/*
* @fixme Packet list should be light user data too at some point
* This function should only be called as a closure.
* As we control the upvalues, we should assert on errors.
*/
-#ifndef NDEBUG
+
rad_assert(lua_islightuserdata(L, lua_upvalueindex(1)));
-#endif
- rad_assert(da = lua_touserdata(L, lua_upvalueindex(1)));
+
+ da = lua_touserdata(L, lua_upvalueindex(1));
+ rad_assert(da);
delete = lua_isnil(L, -1);
* This function should only be called as a closure.
* As we control the upvalues, we should assert on errors.
*/
-#ifndef NDEBUG
+
rad_assert(lua_isuserdata(L, lua_upvalueindex(1)));
-#endif
- rad_assert(cursor = lua_touserdata(L, lua_upvalueindex(1)));
-#ifndef NDEBUG
+
+ cursor = lua_touserdata(L, lua_upvalueindex(1));
+ rad_assert(cursor);
+
rad_assert(lua_isuserdata(L, lua_upvalueindex(2)));
-#endif
- rad_assert(da = lua_touserdata(L, lua_upvalueindex(2)));
+
+ da = lua_touserdata(L, lua_upvalueindex(2));
+ rad_assert(da);
/* Packet list should be light user data too at some point... */
vp = fr_cursor_next_by_da(cursor, da, TAG_ANY);
* This function should only be called as a closure.
* As we control the upvalues, we should assert on errors.
*/
-#ifndef NDEBUG
rad_assert(lua_isuserdata(L, lua_upvalueindex(2)));
-#endif
- rad_assert(da = lua_touserdata(L, lua_upvalueindex(2)));
+
+ da = lua_touserdata(L, lua_upvalueindex(2));
+ rad_assert(da);
+
memcpy(&up, &da, sizeof(up));
cursor = (vp_cursor_t*) lua_newuserdata(L, sizeof(vp_cursor_t));
vp_cursor_t *cursor;
VALUE_PAIR *vp;
-#ifndef NDEBUG
rad_assert(lua_isuserdata(L, lua_upvalueindex(1)));
-#endif
- rad_assert(cursor = lua_touserdata(L, lua_upvalueindex(1)));
+
+ cursor = lua_touserdata(L, lua_upvalueindex(1));
+ rad_assert(cursor);
/* Packet list should be light user data too at some point... */
vp = fr_cursor_current(cursor);