| 115 | } |
| 116 | |
| 117 | type logMessage struct { |
| 118 | c *C.LogMessage |
| 119 | |
| 120 | // invalid flags that cmsg points to unreliable memory, |
| 121 | // since the log hook has already returned. |
| 122 | invalid bool |
| 123 | } |
| 124 | |
| 125 | func (m *logMessage) assertValid() { |
| 126 | if m.invalid { |
nothing calls this directly
no outgoing calls
no test coverage detected