| 185 | |
| 186 | #define _TOSTRING(_NAME) case _NAME: return #_NAME; |
| 187 | const char* GetResultString(Result result) |
| 188 | { |
| 189 | switch(result) |
| 190 | { |
| 191 | _TOSTRING(RESULT_OK) |
| 192 | _TOSTRING(RESULT_GUARD_INVALID) |
| 193 | _TOSTRING(RESULT_ALLOCATION_ERROR) |
| 194 | _TOSTRING(RESULT_BUFFER_INVALID) |
| 195 | _TOSTRING(RESULT_BUFFER_SIZE_ERROR) |
| 196 | _TOSTRING(RESULT_STREAM_SIZE_ERROR) |
| 197 | _TOSTRING(RESULT_STREAM_MISSING) |
| 198 | _TOSTRING(RESULT_STREAM_TYPE_MISMATCH) |
| 199 | _TOSTRING(RESULT_STREAM_COUNT_MISMATCH) |
| 200 | _TOSTRING(RESULT_METADATA_INVALID) |
| 201 | _TOSTRING(RESULT_METADATA_MISSING) |
| 202 | default: return "buffer.cpp: Unknown result"; |
| 203 | } |
| 204 | |
| 205 | } |
| 206 | |
| 207 | const char* GetValueTypeString(ValueType value) |
| 208 | { |
no outgoing calls
no test coverage detected