Macrophage metabolic adaptation to heme detoxification involves CO-dependent activation of the pentose phosphate pathway.