added checking of multiply defined ids in auto macro.