1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

docs(bin,has): add docstrings for macros bin and has

This commit is contained in:
Aneesh 2023-08-03 13:39:38 +05:30
parent f37318d37c
commit 773e69078c
2 changed files with 7 additions and 0 deletions

View file

@ -31,6 +31,9 @@ use std::path::{Component, Path, PathBuf, MAIN_SEPARATOR};
#[cfg(target_os = "windows")]
use winapi_util::AsHandleRef;
/// Used to check if the `mode` has its `perm` bit set.
///
/// This macro expands to `mode & perm != 0`.
#[cfg(unix)]
#[macro_export]
macro_rules! has {

View file

@ -86,6 +86,10 @@ use std::sync::atomic::Ordering;
use once_cell::sync::Lazy;
/// Execute utility code for `util`.
///
/// This macro expands to a main function that invokes the `uumain` function in `util`
/// Exits with code returned by `uumain`.
#[macro_export]
macro_rules! bin {
($util:ident) => {