Macro csnmp::make_oid

source ·
macro_rules! make_oid {
    () => { ... };
    ($firstnum:literal $(, $nextnums:literal)*) => { ... };
    (@store_numbers, $arcs:expr, $length:expr, $lastnum:literal) => { ... };
    (@store_numbers, $arcs:expr, $length:expr, $firstnum:literal $(, $nextnums:literal)*) => { ... };
}
Expand description

Creates an object identifier from a comma-separated sequence.

Unfortunately, dotted sequences are not supported due to the lexer/parser’s interpretation of literals like 1.1 as floating-point numbers instead of dotted integer sequences.