COMMAND_PARSE_OPTIONAL_NUMBER macro
parses the command argument at position @a argn into @a out as a @a type if the argument @a argn does not start with '-'. and passes the error code to the caller. @a argn will be incremented if no error occurred. Otherwise the calling function will return the error code produced by the parsing function. This function may cause the calling function to return immediately, so it should be used carefully to avoid leaking resources. In most situations, parsing should be completed in full before proceeding to allocate resources, and this strategy will most prevents leaks.
Arguments
Location | Text |
command.h:489 | #define COMMAND_PARSE_OPTIONAL_NUMBER(type, argn, out) \ |
ipdbg.c:1052 | COMMAND_PARSE_OPTIONAL_NUMBER(u8, i, data_register_length); |
ipdbg.c:1068 | COMMAND_PARSE_OPTIONAL_NUMBER(int, i, user_num); |
ipdbg.c:1088 | COMMAND_PARSE_OPTIONAL_NUMBER(u32, i, virtual_ir_value); |
ipdbg.c:1089 | COMMAND_PARSE_OPTIONAL_NUMBER(u32, i, virtual_ir_length); |
ipdbg.c:1090 | COMMAND_PARSE_OPTIONAL_NUMBER(u32, i, virtual_ir_instruction); |