add new trap_retval typedef for trap code