| 512 | } |
| 513 | |
| 514 | inline bool AddInt64OrUnsigned(const char *pszFieldName, int64 value) |
| 515 | { |
| 516 | GETCHECK_FIELD(); |
| 517 | CHECK_FIELD_TYPE2(INT64, UINT64); |
| 518 | CHECK_FIELD_REPEATED(); |
| 519 | |
| 520 | if (fieldType == protobuf::FieldDescriptor::CPPTYPE_UINT64) |
| 521 | { |
| 522 | msg->GetReflection()->AddUInt64(msg, field, (uint64)value); |
| 523 | } |
| 524 | else |
| 525 | { |
| 526 | msg->GetReflection()->AddInt64(msg, field, value); |
| 527 | } |
| 528 | |
| 529 | return true; |
| 530 | } |
| 531 | |
| 532 | inline bool GetBool(const char *pszFieldName, bool *out) |
| 533 | { |
no test coverage detected