mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 12:32:40 +02:00
- This is a (weak/overridable) function meant to be called when the program encounters an unrecoverable error, but it's not fatal enough to bring down the entire system with it. - The default implementation uses svcBreak, passing the result code in the user buffer. - Replaced all usages of fatalThrow with diagAbortWithResult throughout the entire library.
16 lines
315 B
C
16 lines
315 B
C
/**
|
|
* @file diag.h
|
|
* @brief Debugging and diagnostics utilities
|
|
* @author fincs
|
|
* @copyright libnx Authors
|
|
*/
|
|
#pragma once
|
|
#include "../types.h"
|
|
#include "../result.h"
|
|
|
|
/**
|
|
* @brief Aborts program execution with a result code.
|
|
* @param[in] res Result code.
|
|
*/
|
|
void NORETURN diagAbortWithResult(Result res);
|