factored out uapply as cpp macro
forgot to add macros.h