Skip to content

Instantly share code, notes, and snippets.

@fjolnir
Created July 5, 2012 04:59
Show Gist options
  • Save fjolnir/3051463 to your computer and use it in GitHub Desktop.
Save fjolnir/3051463 to your computer and use it in GitHub Desktop.
NSPointerArray *TQVaargsToArray(va_list *items)
{
register id arg;
NSPointerArray *arr = [NSPointerArray pointerArrayWithWeakObjects];
while((arg = va_arg(*items, id)) != TQSentinel) {
[arr addPointer:arg];
}
return arr;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment