libnx  v4.8.0
diag.h
Go to the documentation of this file.
1 /**
2  * @file diag.h
3  * @brief Debugging and diagnostics utilities
4  * @author fincs
5  * @copyright libnx Authors
6  */
7 #pragma once
8 #include "../types.h"
9 #include "../result.h"
10 
11 /**
12  * @brief Aborts program execution with a result code.
13  * @param[in] res Result code.
14  */
void diagAbortWithResult(Result res)
Aborts program execution with a result code.
u32 Result
Function error code result type.
Definition: types.h:44
#define NX_NORETURN
Marks a function as not returning, for the purposes of compiler optimization.
Definition: types.h:68