Check if _USESAM is defined