Xyris
0.5
assert.hpp
Go to the documentation of this file.
1
/**
2
* @file assert.hpp
3
* @author Keeton Feavel (
[email protected]
)
4
* @brief
5
* @version 0.3
6
* @date 2020-07-14
7
*
8
* @copyright Copyright the Xyris Contributors (c) 2020
9
*
10
*/
11
#pragma once
12
13
/**
14
* @brief Creates an assertion which must be held to be true.
15
* If the assertion passes, nothing happens and the kernel
16
* continue to execute. However, in the even that the assert
17
* fails and the value received is not the expected value,
18
* the kernel will Panic with the message "Assert failed at"
19
* followed by the file, line number, and function.
20
*
21
*/
22
#define assert(x) (!(x) ? (PANIC("Assert failed at ")) : (void)0)
Kernel
Library
assert.hpp
Generated by
1.8.17