|
Results: Implement namespaced, type-safe results.
Because I was working on multiple things at once, this commit also:
- Adds wrappers for/linker flags to wrap CXX exceptions to make them
abort. This saves ~0x8000 of memory in every system module.
- Broadly replaces lines of the pattern if (cond) { return ResultX; }
with R_UNLESS(!cond, ResultX());.
- Reworks the R_TRY_CATCH macros (and the result macros in general).
|
|---|
|
|
| stratosphere/ams_mitm/Makefile |
|---|
|
Too large (Show diff)
|
| stratosphere/ams_mitm/source/bpc_mitm/bpc_ams_service.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/ams_mitm/source/bpc_mitm/bpc_mitm_service.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/ams_mitm/source/bpc_mitm/bpcmitm_reboot_manager.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/ams_mitm/source/fs_mitm/fs_dir_utils.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/ams_mitm/source/fs_mitm/fs_dir_utils.hpp |
|---|
|
Too large (Show diff)
|
| stratosphere/ams_mitm/source/fs_mitm/fs_directory_redirection_filesystem.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/ams_mitm/source/fs_mitm/fs_directory_savedata_filesystem.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/ams_mitm/source/fs_mitm/fs_file_storage.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/ams_mitm/source/fs_mitm/fs_idirectory.hpp |
|---|
|
Too large (Show diff)
|
| stratosphere/ams_mitm/source/fs_mitm/fs_ifile.hpp |
|---|
|
Too large (Show diff)
|
| stratosphere/ams_mitm/source/fs_mitm/fs_ifilesystem.hpp |
|---|
|
Too large (Show diff)
|
| stratosphere/ams_mitm/source/fs_mitm/fs_istorage.hpp |
|---|
|
Too large (Show diff)
|
| stratosphere/ams_mitm/source/fs_mitm/fs_path_utils.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/ams_mitm/source/fs_mitm/fs_save_utils.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/ams_mitm/source/fs_mitm/fs_subdirectory_filesystem.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/ams_mitm/source/fs_mitm/fsmitm_boot0storage.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/ams_mitm/source/fs_mitm/fsmitm_boot0storage.hpp |
|---|
|
Too large (Show diff)
|
| stratosphere/ams_mitm/source/fs_mitm/fsmitm_layeredrom.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/ams_mitm/source/fs_mitm/fsmitm_romstorage.hpp |
|---|
|
Too large (Show diff)
|
| stratosphere/ams_mitm/source/fs_mitm/fsmitm_service.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/ams_mitm/source/ns_mitm/nsmitm_am_service.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/ams_mitm/source/ns_mitm/nsmitm_web_service.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/ams_mitm/source/set_mitm/set_mitm_service.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/ams_mitm/source/set_mitm/setsys_firmware_version.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/ams_mitm/source/set_mitm/setsys_mitm_service.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/ams_mitm/source/set_mitm/setsys_settings_items.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/ams_mitm/source/utils.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/boot/Makefile |
|---|
|
Too large (Show diff)
|
| stratosphere/boot/source/boot_battery_driver.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/boot/source/boot_calibration.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/boot/source/boot_charger_driver.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/boot/source/boot_i2c_utils.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/boot/source/boot_main.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/boot/source/boot_pcv.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/boot/source/boot_pmic_driver.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/boot/source/i2c/driver/i2c_api.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/boot/source/i2c/driver/impl/i2c_bus_accessor.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/boot/source/i2c/driver/impl/i2c_session.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/boot/source/i2c/i2c_command_list.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/boot2/Makefile |
|---|
|
Too large (Show diff)
|
| stratosphere/boot2/source/boot2_main.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/creport/Makefile |
|---|
|
Too large (Show diff)
|
| stratosphere/creport/source/creport_crash_report.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/creport/source/creport_crash_report.hpp |
|---|
|
Too large (Show diff)
|
| stratosphere/creport/source/creport_main.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/dmnt/Makefile |
|---|
|
Too large (Show diff)
|
| stratosphere/dmnt/source/cheat/dmnt_cheat_service.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/dmnt/source/cheat/impl/dmnt_cheat_api.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/dmnt/source/cheat/impl/dmnt_cheat_vm.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/dmnt/source/dmnt_main.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/dmnt/source/dmnt_service_debug.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/dmnt/source/dmnt_service_target_io.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/eclct.stub/Makefile |
|---|
|
Too large (Show diff)
|
| stratosphere/eclct.stub/source/eclct_stub.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/fatal/Makefile |
|---|
|
Too large (Show diff)
|
| stratosphere/fatal/source/fatal_debug.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/fatal/source/fatal_event_manager.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/fatal/source/fatal_main.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/fatal/source/fatal_repair.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/fatal/source/fatal_service.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/fatal/source/fatal_service.hpp |
|---|
|
Too large (Show diff)
|
| stratosphere/fatal/source/fatal_task_clock.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/fatal/source/fatal_task_error_report.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/fatal/source/fatal_task_power.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/fatal/source/fatal_task_screen.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/fatal/source/fatal_task_sound.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/Makefile |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/include/stratosphere/ams/ams_exosphere_api.hpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/include/stratosphere/defines.hpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/include/stratosphere/fatal/fatal_types.hpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/include/stratosphere/kvdb/kvdb_auto_buffer.hpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/include/stratosphere/kvdb/kvdb_file_key_value_cache.hpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/include/stratosphere/kvdb/kvdb_file_key_value_store.hpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/include/stratosphere/kvdb/kvdb_memory_key_value_store.hpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/include/stratosphere/os/os_thread.hpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/include/stratosphere/results.hpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/include/stratosphere/results/ams_results.hpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/include/stratosphere/results/cal_results.hpp 0 → 100644 |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/include/stratosphere/results/creport_results.hpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/include/stratosphere/results/debug_results.hpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/include/stratosphere/results/dmnt_results.hpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/include/stratosphere/results/err_results.hpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/include/stratosphere/results/fatal_results.hpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/include/stratosphere/results/fs_results.hpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/include/stratosphere/results/hipc_results.hpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/include/stratosphere/results/i2c_results.hpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/include/stratosphere/results/kernel_results.hpp 100644 → 0 |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/include/stratosphere/results/kvdb_results.hpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/include/stratosphere/results/loader_results.hpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/include/stratosphere/results/lr_results.hpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/include/stratosphere/results/ncm_results.hpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/include/stratosphere/results/os_results.hpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/include/stratosphere/results/pm_results.hpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/include/stratosphere/results/results_common.hpp 0 → 100644 |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/include/stratosphere/results/ro_results.hpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/include/stratosphere/results/settings_results.hpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/include/stratosphere/results/sf_results.hpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/include/stratosphere/results/sm_results.hpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/include/stratosphere/results/spl_results.hpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/include/stratosphere/results/svc_results.hpp 0 → 100644 |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/include/stratosphere/results/updater_results.hpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/include/stratosphere/results/utilities.h 100644 → 0 |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/include/stratosphere/results/vi_results.hpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/include/stratosphere/sf/hipc/sf_hipc_server_manager.hpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/include/stratosphere/sf/hipc/sf_hipc_server_session_manager.hpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/include/stratosphere/sf/impl/sf_impl_command_serialization.hpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/include/stratosphere/sf/sf_out.hpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/include/stratosphere/sm/sm_scoped_holder.hpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/include/stratosphere/spl/spl_types.hpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/include/stratosphere/util/util_alignment.hpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/source/ams/ams_environment.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/source/ams/ams_exosphere_api.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/source/boot2/boot2_api.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/source/cfg/cfg_sd_card.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/source/dd/dd_io_mappings.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/source/hid/hid_api.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/source/kvdb/kvdb_archive.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/source/kvdb/kvdb_file_key_value_store.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/source/map/map_api.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/source/os/impl/os_inter_process_event.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/source/os/impl/os_waitable_manager_impl.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/source/os/os_interrupt_event.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/source/os/os_system_event.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/source/pm/pm_dmnt_api.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/source/pm/pm_info_api.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/source/result/result_on_assertion.cpp 0 → 100644 |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/source/sf/cmif/sf_cmif_domain_manager.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/source/sf/cmif/sf_cmif_domain_service_object.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/source/sf/cmif/sf_cmif_service_dispatch.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/source/sf/hipc/sf_hipc_api.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/source/sf/hipc/sf_hipc_server_domain_session_manager.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/source/sf/hipc/sf_hipc_server_manager.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/source/sf/hipc/sf_hipc_server_session_manager.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/source/sm/sm_api.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/source/updater/updater_api.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/source/updater/updater_bis_management.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/source/updater/updater_bis_management.hpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/source/updater/updater_bis_save.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/libstratosphere/source/updater/updater_files.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/loader/Makefile |
|---|
|
Too large (Show diff)
|
| stratosphere/loader/source/ldr_arguments.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/loader/source/ldr_capabilities.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/loader/source/ldr_content_management.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/loader/source/ldr_ecs.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/loader/source/ldr_launch_record.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/loader/source/ldr_loader_service.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/loader/source/ldr_main.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/loader/source/ldr_meta.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/loader/source/ldr_process_creation.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/loader/source/ldr_ro_manager.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/pm/Makefile |
|---|
|
Too large (Show diff)
|
| stratosphere/pm/source/impl/pm_process_manager.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/pm/source/impl/pm_resource_manager.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/pm/source/pm_debug_monitor_service.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/pm/source/pm_main.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/ro/Makefile |
|---|
|
Too large (Show diff)
|
| stratosphere/ro/source/impl/ro_nro_utils.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/ro/source/impl/ro_nrr_utils.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/ro/source/impl/ro_service_impl.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/ro/source/ro_debug_monitor.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/ro/source/ro_main.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/sm/Makefile |
|---|
|
Too large (Show diff)
|
| stratosphere/sm/source/impl/sm_service_manager.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/sm/source/sm_main.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/sm/source/sm_user_service.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/spl/Makefile |
|---|
|
Too large (Show diff)
|
| stratosphere/spl/source/spl_api_impl.cpp |
|---|
|
Too large (Show diff)
|
| stratosphere/spl/source/spl_main.cpp |
|---|
|
Too large (Show diff)
|