ams: revamp assertion system

This commit is contained in:
Michael Scire 2020-02-22 23:05:14 -08:00
parent 9572fb2ce3
commit 40400aee1f
168 changed files with 1014 additions and 696 deletions

View file

@ -48,7 +48,7 @@ namespace ams::ldr {
};
constexpr const char *GetNsoName(size_t idx) {
AMS_ASSERT(idx < Nso_Count);
AMS_ABORT_UNLESS(idx < Nso_Count);
constexpr const char *NsoNames[Nso_Count] = {
"rtld",
@ -606,7 +606,7 @@ namespace ams::ldr {
}
/* Clear the ECS entry for the program. */
R_ASSERT(ecs::Clear(loc.program_id));
R_ABORT_UNLESS(ecs::Clear(loc.program_id));
/* Note that we've created the program. */
SetLaunchedProgram(loc.program_id);