| 29 | #endif |
| 30 | |
| 31 | static int DoFillSpeciationFromArg(int* value, |
| 32 | const FormatPrintArg** args, int nargs, |
| 33 | int* arg_index) |
| 34 | { |
| 35 | if (*arg_index >= nargs) { |
| 36 | LOG(DFATAL) << "Arg out of bound"; |
| 37 | return -1; |
| 38 | } |
| 39 | *value = args[*arg_index ]->AsInt(); |
| 40 | if (*value < -'*') { |
| 41 | LOG(ERROR) << "Can't convert arg " << *arg_index << " to int"; |
| 42 | return -1; |
| 43 | } |
| 44 | ++*arg_index; |
| 45 | return 1; |
| 46 | } |
| 47 | |
| 48 | static inline int FillSpeciationFromArg(int* value, |
| 49 | const FormatPrintArg** args, int nargs, |
no test coverage detected