Fix __FUNC__ definitions in backward compatibility code for DM