undefined function during macroexpansion workaround