mirror of
https://git.proxmox.com/git/proxmox
synced 2025-08-07 09:51:39 +00:00
sys: doc update
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
fe5ab619fb
commit
d07286c7a3
@ -30,6 +30,9 @@ macro_rules! io_bail {
|
|||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
/// Non-panicking assertion: shortcut for returning an `io::Error` if the condition is not met.
|
/// Non-panicking assertion: shortcut for returning an `io::Error` if the condition is not met.
|
||||||
/// Essentially: `if !expr { io_bail_last!() }`.
|
/// Essentially: `if !expr { io_bail_last!() }`.
|
||||||
|
///
|
||||||
|
/// Note that this uses `errno`, care must be taken not to overwrite it with different value as a
|
||||||
|
/// side effect.
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
macro_rules! io_assert {
|
macro_rules! io_assert {
|
||||||
($value:expr) => {
|
($value:expr) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user