ams: revamp assertion system
This commit is contained in:
@@ -79,7 +79,7 @@ namespace ams::gpio {
|
||||
}
|
||||
|
||||
/* Ensure we found an appropriate config. */
|
||||
AMS_ASSERT(configs != nullptr);
|
||||
AMS_ABORT_UNLESS(configs != nullptr);
|
||||
|
||||
for (size_t i = 0; i < num_configs; i++) {
|
||||
/* Configure the GPIO. */
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace ams::gpio {
|
||||
|
||||
/* Helpers. */
|
||||
inline u32 GetPadDescriptor(u32 gpio_pad_name) {
|
||||
AMS_ASSERT(gpio_pad_name < PadNameMax);
|
||||
AMS_ABORT_UNLESS(gpio_pad_name < PadNameMax);
|
||||
return Map[gpio_pad_name];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user