unsigned __save_interrupt(void);
__save_interrupt returns the current value of the interrupt control register IC, including the IGE bit, without changing the status register. You can restore the state of the interrupt flag using the __restore_interrupt intrinsic function.
__save_interrupt is an intrinsic function and produces inline code.
__disable_interrupt, __enable_interrupt, __restore_interrupt