Commit 0401d159 authored by Matthias Braun's avatar Matthias Braun
Browse files

Return address of new element in ARR_APP1

parent 521f76c0
......@@ -280,7 +280,7 @@ static inline size_t ARR_LEN(void const *const arr)
* @param arr The array, which must be an lvalue.
* @param elt The new element, must be of type (type).
*/
#define ARR_APP1(type, arr, elt) (*ARR_EXTEND1(type, (arr)) = (elt))
#define ARR_APP1(type, arr, elt) (*ARR_EXTEND1(type, (arr)) = (elt), (arr)+ARR_LEN((arr))-1)
/** @} */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment