Replaced all "assert" with "R_ASSERT"