| 23 | namespace butil { |
| 24 | |
| 25 | inline size_t status_size(size_t message_size) { |
| 26 | // Add 1 because even if the sum of size is aligned with int, we need to |
| 27 | // put an ending '\0' |
| 28 | return ((offsetof(Status::State, message) + message_size) |
| 29 | / sizeof(int) + 1) * sizeof(int); |
| 30 | } |
| 31 | |
| 32 | int Status::set_errorv(int c, const char* fmt, va_list args) { |
| 33 | if (0 == c) { |
no outgoing calls
no test coverage detected