Macro tikv_util::count_args[][src]

macro_rules! count_args {
    () => { ... };
    ($head:expr $(, $tail:expr)*) => { ... };
}

Gets the count of macro’s arguments.

Examples

assert_eq!(count_args!(), 0);
assert_eq!(count_args!(1), 1);
assert_eq!(count_args!(1, 2), 2);
assert_eq!(count_args!(1, 2, 3), 3);