Scoping for tmpx, macro extraction