When the OSKit is compiled with debugging enabled (-enable-debug), a number of sanity checks are compiled to help detect bad parameters.