put ret dump inside ifdef